More drawer controller security
This commit is contained in:
parent
df75dfa8f0
commit
bed714a4fa
|
@ -218,6 +218,7 @@ public class DrawerControllerTile extends ControllableDrawerTile<DrawerControlle
|
|||
for (Long connectedDrawer : this.connectedDrawers) {
|
||||
BlockPos pos = BlockPos.of(connectedDrawer);
|
||||
BlockEntity entity = level.getBlockEntity(pos);
|
||||
if (entity instanceof DrawerControllerTile) continue;
|
||||
if (entity instanceof ControllableDrawerTile) {
|
||||
this.handlers.add(((ControllableDrawerTile<?>) entity).getStorage());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user