mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 07:13:28 +01:00
Make canPlayerUse consistently use this.getBlockPos()
This commit is contained in:
parent
06ef7146e0
commit
82aaacf1d9
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ public abstract class TileEntityBase extends BlockEntity {
|
|||
}
|
||||
|
||||
public boolean canPlayerUse(Player player) {
|
||||
return player.distanceToSqr(this.getBlockPos().getX() + 0.5D, this.worldPosition.getY() + 0.5D, this.worldPosition.getZ() + 0.5D) <= 64 && !this.isRemoved() && this.level.getBlockEntity(this.worldPosition) == this;
|
||||
return player.distanceToSqr(this.getBlockPos().getX() + 0.5D, this.getBlockPos().getY() + 0.5D, this.getBlockPos().getZ() + 0.5D) <= 64 && !this.isRemoved() && this.level.getBlockEntity(this.worldPosition) == this;
|
||||
}
|
||||
|
||||
protected boolean sendUpdateWithInterval() {
|
||||
|
|
Loading…
Reference in a new issue