ActiveChest is now correctly tracked. Fixes #1122
This commit is contained in:
parent
98cafb5826
commit
90655adf8c
2 changed files with 5 additions and 1 deletions
|
|
@ -3027,6 +3027,9 @@ namespace TShockAPI
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int id = Chest.FindChest(x, y);
|
||||||
|
args.Player.ActiveChest = id;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -850,6 +850,7 @@ namespace TShockAPI
|
||||||
|
|
||||||
if (ActiveChest != -1)
|
if (ActiveChest != -1)
|
||||||
{
|
{
|
||||||
|
ActiveChest = -1;
|
||||||
SendData(PacketTypes.ChestOpen, "", -1);
|
SendData(PacketTypes.ChestOpen, "", -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue