mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +00:00
Fix JABBA-related issues with crafting station slots (#54)
* Fix shift-merging tools voiding items fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/11392> * Change 0-sized ItemStacks into null stacks in crafting station attached slots Fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10425> * Update buildscript * spotlessApply
This commit is contained in:
1 parent
18bfeaff32
commit
39be06c23b
571 files changed
+25959
-28223
No files matched your search
@@ -28,22 +28,22 @@ public class TankItemRenderer implements IItemRenderer {
|
||||
Block block = Block.getBlockFromItem(item.getItem());
|
||||
int meta = item.getItemDamage();
|
||||
|
||||
if(item.hasTagCompound() && item.getTagCompound().hasKey("Fluid"))
|
||||
{
|
||||
FluidStack liquid = FluidStack.loadFluidStackFromNBT(item.getTagCompound().getCompoundTag("Fluid"));
|
||||
if(liquid != null && liquid.getFluid().getBlock() != null)
|
||||
{
|
||||
if (item.hasTagCompound() && item.getTagCompound().hasKey("Fluid")) {
|
||||
FluidStack liquid =
|
||||
FluidStack.loadFluidStackFromNBT(item.getTagCompound().getCompoundTag("Fluid"));
|
||||
if (liquid != null && liquid.getFluid().getBlock() != null) {
|
||||
GL11.glEnable(GL11.GL_BLEND);
|
||||
float height = (float)liquid.amount / 4000f - 0.01f;
|
||||
float height = (float) liquid.amount / 4000f - 0.01f;
|
||||
renderblocks.setRenderBounds(0.01, 0.01, 0.01, 0.99, height, 0.99);
|
||||
ItemHelper.renderStandardInvBlock(renderblocks, liquid.getFluid().getBlock(), 0);
|
||||
ItemHelper.renderStandardInvBlock(
|
||||
renderblocks, liquid.getFluid().getBlock(), 0);
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
}
|
||||
}
|
||||
|
||||
GL11.glEnable(GL11.GL_ALPHA_TEST);
|
||||
renderblocks.setRenderBounds(0, 0, 0, 1, 1, 1);
|
||||
//ItemHelper.renderStandardInvBlock(renderblocks, block, meta);
|
||||
// ItemHelper.renderStandardInvBlock(renderblocks, block, meta);
|
||||
RenderingRegistry.instance().renderInventoryBlock(renderblocks, block, meta, TankRender.tankModelID);
|
||||
GL11.glDisable(GL11.GL_ALPHA_TEST);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user