Fix players being able to open other's chests (check it's the right variable next time)

This commit is contained in:
Sam 2017-10-13 19:16:28 +01:00
parent cf07417b1f
commit 051a0f8809

View File

@ -102,7 +102,7 @@ public class TreasureSession implements Listener
event.setCancelled(true);
if (!player.equals(event.getPlayer()) || _openedChests.contains(location) || isDone())
if (!_player.equals(player) || _openedChests.contains(location) || isDone())
{
return;
}