mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-21 20:52:42 +00:00
Fix position of block item renders in inventories
This commit is contained in:
1 parent
e232836361
commit
b0ab4c2a22
2 files changed
+3
-2
No files matched your search
@@ -63,6 +63,7 @@ public class AbstractMachineRenderer implements ISimpleBlockRenderingHandler, II
|
||||
public void renderInventoryBlock(Block block, int metadata, int modelId, RenderBlocks renderer) {
|
||||
|
||||
BoundingBox bb = BoundingBox.UNIT_CUBE;
|
||||
bb = bb.translate(0, -0.1f, 0);
|
||||
|
||||
Tessellator.instance.startDrawingQuads();
|
||||
|
||||
|
||||
@@ -265,9 +265,9 @@ public class TechneUtil {
|
||||
public static void renderInventoryBlock(List<GroupObject> model, IIcon icon, Block block, int metadata, RenderBlocks rb) {
|
||||
tes.startDrawingQuads();
|
||||
tes.setColorOpaque_F(1, 1, 1);
|
||||
tes.addTranslation(0, -0.5f, 0);
|
||||
tes.addTranslation(0, -0.47f, 0);
|
||||
renderWithIcon(model, icon, rb.overrideBlockTexture, tes, vt);
|
||||
tes.addTranslation(0, 0.5f, 0);
|
||||
tes.addTranslation(0, 0.47f, 0);
|
||||
tes.draw();
|
||||
resetVT();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user