Made the controller/slave able to be used by the OpenComputers transposer (#77)

This commit is contained in:
playfuldoggo authored and GitHub committed 2026-08-28 23:11:32 -04:00
1 parent 7741ab8628
commit 59b527f82c
2 files changed
+6 -2

No files matched your search

@@ -849,7 +849,9 @@ public class TileEntityController extends TileEntity
@Override
public boolean isUseableByPlayer(EntityPlayer player) {
return false;
if (worldObj.getTileEntity(xCoord, yCoord, zCoord) != this) return false;
return player.getDistanceSq(xCoord + .5, yCoord + .5, zCoord + .5) <= 64;
}
@Override
@@ -190,7 +190,9 @@ public class TileEntitySlave extends TileEntity implements IDrawerGroup, IPriori
@Override
public boolean isUseableByPlayer(EntityPlayer player) {
return false;
if (worldObj.getTileEntity(xCoord, yCoord, zCoord) != this) return false;
return player.getDistanceSq(xCoord + .5, yCoord + .5, zCoord + .5) <= 64;
}
@Override