Skip to content

Commit 2a9dd0a

Browse files
committed
Fix disableInventoryEntityScissor
1 parent fe10f6b commit 2a9dd0a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/visuals/legacy/animatium/mixins/v1/gui/old_inventory_rendering/MixinInventoryScreen_DisableEntityScissor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public abstract class MixinInventoryScreen_DisableEntityScissor {
4545
private static void animatium$disableEntityScissor(final GuiGraphics instance, final EntityRenderState renderState, final float scale, final Vector3f translation, final Quaternionf rotation, final Quaternionf overrideCameraAngle, final int x0, final int y0, final int x1, final int y1, final Operation<Void> original) {
4646
if (Animatium.isEnabled() && AnimatiumConfig.instance().other.disableInventoryEntityScissor) {
4747
final ScreenRectangle bounds = new ScreenRectangle(0, 0, instance.guiWidth(), instance.guiHeight());
48-
instance.guiRenderState.submitPicturesInPictureState(new GuiEntityRenderState(renderState, translation, rotation, overrideCameraAngle, x0, y0, x1, y1, scale, null, bounds));
48+
final int expansion = 40;
49+
instance.guiRenderState.submitPicturesInPictureState(new GuiEntityRenderState(renderState, translation, rotation, overrideCameraAngle, x0 - expansion, y0 - expansion, x1 + expansion, y1 + expansion, scale, null, bounds));
4950
} else {
5051
original.call(instance, renderState, scale, translation, rotation, overrideCameraAngle, x0, y0, x1, y1);
5152
}

0 commit comments

Comments
 (0)