From 348dc518c67c9e5c47d25e220d959534f1b00865 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 1 Feb 2016 20:31:27 +0100 Subject: [PATCH] The heck!? --- .../mod/tile/TileEntityInventoryBase.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityInventoryBase.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityInventoryBase.java index 15107de4e..1f0ef165c 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityInventoryBase.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityInventoryBase.java @@ -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; }