diff options
| author | shedaniel <daniel@shedaniel.me> | 2024-04-16 01:34:03 +0900 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2024-04-16 01:34:03 +0900 |
| commit | 8981a2f730942e169ba5efa2f25ad3066dc0f797 (patch) | |
| tree | 5c6117978c8525d319934bf5be110e96f3a3705d /runtime/src/main/java/me/shedaniel/rei/plugin/client | |
| parent | 6788d2b65edfd1b24f84bd92fbf66ec4098537d6 (diff) | |
| download | RoughlyEnoughItems-8981a2f730942e169ba5efa2f25ad3066dc0f797.tar.gz RoughlyEnoughItems-8981a2f730942e169ba5efa2f25ad3066dc0f797.tar.bz2 RoughlyEnoughItems-8981a2f730942e169ba5efa2f25ad3066dc0f797.zip | |
Fix merge conflicts
Diffstat (limited to 'runtime/src/main/java/me/shedaniel/rei/plugin/client')
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/plugin/client/runtime/DefaultClientRuntimePlugin.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/plugin/client/runtime/DefaultClientRuntimePlugin.java b/runtime/src/main/java/me/shedaniel/rei/plugin/client/runtime/DefaultClientRuntimePlugin.java index a085e82af..aa78ff903 100644 --- a/runtime/src/main/java/me/shedaniel/rei/plugin/client/runtime/DefaultClientRuntimePlugin.java +++ b/runtime/src/main/java/me/shedaniel/rei/plugin/client/runtime/DefaultClientRuntimePlugin.java @@ -361,20 +361,20 @@ public class DefaultClientRuntimePlugin implements REIClientPlugin { for (EntryIngredient ingredient : display.getOutputEntries()) { slot.entries(ingredient); } - return new AbstractRenderer() { + return new Renderer() { @Override - public void render(PoseStack matrices, Rectangle bounds, int mouseX, int mouseY, float delta) { - matrices.pushPose(); - matrices.translate(bounds.getX(), bounds.getY(), 1); - matrices.scale(bounds.width / (float) panel.getBounds().getWidth(), bounds.height / (float) panel.getBounds().getHeight(), 1); - panel.render(matrices, mouseX, mouseY, delta); - matrices.popPose(); + public void render(GuiGraphics graphics, Rectangle bounds, int mouseX, int mouseY, float delta) { + graphics.pose().pushPose(); + graphics.pose().translate(bounds.getX(), bounds.getY(), 1); + graphics.pose().scale(bounds.width / (float) panel.getBounds().getWidth(), bounds.height / (float) panel.getBounds().getHeight(), 1); + panel.render(graphics, mouseX, mouseY, delta); + graphics.pose().popPose(); if (bounds.width > 4 && bounds.height > 4) { - matrices.pushPose(); - matrices.translate(0, 0.5, 0); + graphics.pose().pushPose(); + graphics.pose().translate(0, 0.5, 0); slot.getBounds().setBounds(bounds.x + 2, bounds.y + 2, bounds.width - 4, bounds.height - 4); - slot.render(matrices, mouseX, mouseY, delta); - matrices.popPose(); + slot.render(graphics, mouseX, mouseY, delta); + graphics.pose().popPose(); } } |
