More inventory code cleanup

This commit is contained in:
Salad Dais
2025-06-07 10:00:03 +00:00
parent c60c2819ac
commit 76216ee390
2 changed files with 22 additions and 16 deletions

View File

@@ -134,7 +134,7 @@ class ProxyInventoryManager(InventoryManager):
inv_type: InventoryType,
wearable_type: WearableType,
transaction_id: UUID,
perms: int = 0x7FffFFff,
next_mask: int = 0x7FffFFff,
description: str = '',
) -> InventoryItem:
item = await super().create_item(
@@ -144,7 +144,7 @@ class ProxyInventoryManager(InventoryManager):
inv_type=inv_type,
wearable_type=wearable_type,
transaction_id=transaction_id,
perms=perms,
next_mask=next_mask,
description=description,
)
await self._session.main_region.circuit.send_reliable(self._craft_update_message(item))
@@ -154,7 +154,7 @@ class ProxyInventoryManager(InventoryManager):
await super().update(node, data)
await self._session.main_region.circuit.send_reliable(self._craft_update_message(node))
async def move(self, node: InventoryNodeBase, new_parent: UUID) -> None:
async def move(self, node: InventoryNodeBase, new_parent: UUID | InventoryCategory) -> None:
await super().move(node, new_parent)
await self._session.main_region.circuit.send_reliable(self._craft_update_message(node))