ActiveChest is now correctly tracked. Fixes #1122

This commit is contained in:
White 2015-09-29 18:12:09 +09:30
parent 98cafb5826
commit 90655adf8c
2 changed files with 5 additions and 1 deletions

View file

@ -3027,6 +3027,9 @@ namespace TShockAPI
return true; return true;
} }
int id = Chest.FindChest(x, y);
args.Player.ActiveChest = id;
return false; return false;
} }

View file

@ -850,6 +850,7 @@ namespace TShockAPI
if (ActiveChest != -1) if (ActiveChest != -1)
{ {
ActiveChest = -1;
SendData(PacketTypes.ChestOpen, "", -1); SendData(PacketTypes.ChestOpen, "", -1);
} }