mirror of
https://github.com/KAMKEEL/CustomNPC-Gecko-Addon.git
synced 2026-11-14 06:14:53 +00:00
Reapply Default Compensation to Geo Item Stack to match Geo Item
This commit is contained in:
1 parent
6215691011
commit
92b4dc2401
2 files changed
+7
-1
No files matched your search
@@ -78,6 +78,12 @@ public class ModelItemRenderUtil {
|
||||
applyRotate(transform, type);
|
||||
applyScale(transform, type);
|
||||
|
||||
// Compensate for GeoItemStackRenderer's internal transforms:
|
||||
// translate(0, 0.01, 0) + translate(0.5, 0.5, 0.5) + rotate(90, Y)
|
||||
// Apply inverse so our tuned defaults remain the final matrix.
|
||||
GL11.glRotatef(-90, 0, 1, 0);
|
||||
GL11.glTranslatef(-0.5F, -0.51F, -0.5F);
|
||||
|
||||
if(type == ItemRenderType.INVENTORY)
|
||||
RenderHelper.disableStandardItemLighting();
|
||||
RENDERER.render(wrapper, itemStack);
|
||||
|
||||
Reference in new issue
Block a user