mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 05:02:25 +00:00
#1595 All buffers show as Item Buffer in WAILA
TODO: fix this for all machines in a less hacky way
This commit is contained in:
1 parent
23dbf935e6
commit
c386c08c02
1 file changed
+7
@@ -10,6 +10,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -148,6 +149,12 @@ public class BlockBuffer extends AbstractMachineBlock<TileBuffer> implements IFa
|
||||
}
|
||||
return super.removedByPlayer(world, player, x, y, z, willHarvest);
|
||||
}
|
||||
|
||||
// TODO refactor machines so all have this functionality
|
||||
@Override
|
||||
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) {
|
||||
return createDrop((TileBuffer) world.getTileEntity(x, y, z));
|
||||
}
|
||||
|
||||
private ItemStack createDrop(TileBuffer te) {
|
||||
ItemStack stack = new ItemStack(this, 1, BlockItemBuffer.Type.get(te).ordinal());
|
||||
|
||||
Reference in new issue
Block a user