Skip to content

Commit

Permalink
feat: Implementing Double chest lock.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lapis0875 committed Mar 10, 2022
1 parent b2cb292 commit d8ee6b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void onBlockRedstone(BlockRedstoneEvent e) {
if (!NBTLock.isLockable(e.getBlock().getType())) return;
TileState state = (TileState) e.getBlock().getState();
Optional<NBTLock> objectLock = NBTLock.getLock(state.getPersistentDataContainer());
if (!objectLock.isPresent()) return;
if (objectLock.isEmpty()) return;
e.setNewCurrent(0);
}

Expand Down

0 comments on commit d8ee6b6

Please sign in to comment.