mirror of
https://github.com/solero/houdini.git
synced 2024-11-25 15:07:24 +00:00
Fix incorrect check on handle_buy_inventory handler
This commit is contained in:
parent
99237c9280
commit
a68eba7953
@ -52,7 +52,7 @@ async def handle_get_inventory(p):
|
||||
@handlers.handler(XTPacket('i', 'ai'))
|
||||
@handlers.depends_on_packet(XTPacket('i', 'gi'))
|
||||
async def handle_buy_inventory(p, item: Item):
|
||||
if item.id not in p.server.items:
|
||||
if item is None:
|
||||
return await p.send_error(402)
|
||||
|
||||
if item.id in p.data.inventory:
|
||||
|
Loading…
Reference in New Issue
Block a user