The heck!?

This commit is contained in:
Ellpeck 2016-02-01 20:31:27 +01:00
parent 2d476a0b6d
commit 348dc518c6

View file

@ -105,7 +105,9 @@ public abstract class TileEntityInventoryBase extends TileEntityBase implements
else{
return new int[0];
}
} @Override
}
@Override
public int getInventoryStackLimit(){
return 64;
}
@ -113,7 +115,9 @@ public abstract class TileEntityInventoryBase extends TileEntityBase implements
@Override
public boolean hasCapability(net.minecraftforge.common.capabilities.Capability<?> capability, net.minecraft.util.EnumFacing facing){
return this.getCapability(capability, facing) != null;
} @Override
}
@Override
public boolean isUseableByPlayer(EntityPlayer player){
return player.getDistanceSq(this.getPos().getX()+0.5D, this.pos.getY()+0.5D, this.pos.getZ()+0.5D) <= 64 && !this.isInvalid() && this.worldObj.getTileEntity(this.pos) == this;
}