mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-27 23:45:36 +00:00
Made the controller/slave able to be used by the OpenComputers transposer (#77)
This commit is contained in:
1 parent
7741ab8628
commit
59b527f82c
2 files changed
+6
-2
No files matched your search
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user