mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-20 20:22:22 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
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