diff --git a/src/main/java/com/cleanroommc/modularui/screen/Tooltip.java b/src/main/java/com/cleanroommc/modularui/screen/Tooltip.java index 5027d869..5c634c18 100644 --- a/src/main/java/com/cleanroommc/modularui/screen/Tooltip.java +++ b/src/main/java/com/cleanroommc/modularui/screen/Tooltip.java @@ -81,7 +81,7 @@ public void draw(GuiContext context, @Nullable ItemStack stack) { int mouseX = context.getAbsMouseX(), mouseY = context.getAbsMouseY(); IconRenderer renderer = IconRenderer.SHARED; List textLines = lines.stream().filter(drawable -> drawable instanceof IKey).map(key -> ((IKey) key).get()).collect(Collectors.toList()); - RenderTooltipEvent.Pre event = new RenderTooltipEvent.Pre(stack, textLines, mouseX, mouseY, screen.width, screen.height, thimaxWidth, TextRenderer.getFontRenderer()); + RenderTooltipEvent.Pre event = new RenderTooltipEvent.Pre(stack, textLines, mouseX, mouseY, screen.width, screen.height, this.maxWidth, TextRenderer.getFontRenderer()); if (MinecraftForge.EVENT_BUS.post(event)) { return; } diff --git a/src/main/java/com/cleanroommc/modularui/value/sync/FluidSlotSyncHandler.java b/src/main/java/com/cleanroommc/modularui/value/sync/FluidSlotSyncHandler.java index 279a4704..18291d4a 100644 --- a/src/main/java/com/cleanroommc/modularui/value/sync/FluidSlotSyncHandler.java +++ b/src/main/java/com/cleanroommc/modularui/value/sync/FluidSlotSyncHandler.java @@ -103,7 +103,9 @@ public void readOnClient(int id, PacketBuffer buf) { @Override public void readOnServer(int id, PacketBuffer buf) { if (id == 0) { - read(buf); + if (this.phantom) { + read(buf); + } } else if (id == 1) { if (this.phantom) { tryClickPhantom(MouseData.readPacket(buf));