Fix players being able to open other's chests (check it's the right variable next time)
This commit is contained in:
parent
cf07417b1f
commit
051a0f8809
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user