mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
SM: getitem cheat fix (#3102)
This commit is contained in:
@@ -139,7 +139,7 @@ class SMSNIClient(SNIClient):
|
||||
if item_out_ptr < len(ctx.items_received):
|
||||
item = ctx.items_received[item_out_ptr]
|
||||
item_id = item.item - items_start_id
|
||||
if bool(ctx.items_handling & 0b010):
|
||||
if bool(ctx.items_handling & 0b010) or item.location < 0: # item.location < 0 for !getitem to work
|
||||
location_id = (item.location - locations_start_id) if (item.location >= 0 and item.player == ctx.slot) else 0xFF
|
||||
else:
|
||||
location_id = 0x00 #backward compat
|
||||
|
Reference in New Issue
Block a user