From 5ad59b96adcae4c5dff7665d780d3b360ef07ae4 Mon Sep 17 00:00:00 2001 From: lothrazar Date: Tue, 12 Nov 2024 08:38:46 -0800 Subject: [PATCH] fix visual glitches --- gradle.properties | 2 +- .../com/lothrazar/cyclic/block/dropper/ScreenDropper.java | 6 +++--- .../com/lothrazar/cyclic/block/forester/ScreenForester.java | 4 ++-- .../lothrazar/cyclic/block/harvester/ScreenHarvester.java | 4 ++-- update.json | 1 + 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/gradle.properties b/gradle.properties index 6f1c8f3d2..e497906a8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,7 +7,7 @@ org.gradle.daemon=false curse_id=239286 -mod_version=1.8.0 +mod_version=1.8.1 mc_version=1.18.2 forge_version=40.2.21 diff --git a/src/main/java/com/lothrazar/cyclic/block/dropper/ScreenDropper.java b/src/main/java/com/lothrazar/cyclic/block/dropper/ScreenDropper.java index 32b0791a4..b04203857 100644 --- a/src/main/java/com/lothrazar/cyclic/block/dropper/ScreenDropper.java +++ b/src/main/java/com/lothrazar/cyclic/block/dropper/ScreenDropper.java @@ -34,10 +34,10 @@ public void init() { y += 20; btnRender = addRenderableWidget(new ButtonMachineField(x, y, TileDropper.Fields.RENDER.ordinal(), menu.tile.getBlockPos(), TextureEnum.RENDER_HIDE, TextureEnum.RENDER_SHOW, "gui.cyclic.render")); - x = leftPos + 32; - y = topPos + 18; w = 120; - h = 18; + h = 20; + x = leftPos + 32; + y = topPos + h - 4; int f = TileDropper.Fields.DROPCOUNT.ordinal(); GuiSliderInteger dropcount = this.addRenderableWidget(new GuiSliderInteger(x, y, w, h, f, menu.tile.getBlockPos(), 1, 64, menu.tile.getField(f))); diff --git a/src/main/java/com/lothrazar/cyclic/block/forester/ScreenForester.java b/src/main/java/com/lothrazar/cyclic/block/forester/ScreenForester.java index 3774cf861..67f12e9de 100644 --- a/src/main/java/com/lothrazar/cyclic/block/forester/ScreenForester.java +++ b/src/main/java/com/lothrazar/cyclic/block/forester/ScreenForester.java @@ -40,8 +40,8 @@ public void init() { f = TileForester.Fields.RENDER.ordinal(); btnRender = addRenderableWidget(new ButtonMachineField(x, y, f, menu.tile.getBlockPos(), TextureEnum.RENDER_HIDE, TextureEnum.RENDER_SHOW, "gui.cyclic.render")); - x += 30; - y += 36; + x = leftPos + 30; + y = topPos + 36; f = TileForester.Fields.HEIGHT.ordinal(); heightslider = this.addRenderableWidget(new GuiSliderInteger(x, y, w, h, TileForester.Fields.HEIGHT.ordinal(), menu.tile.getBlockPos(), 0, TileForester.MAX_HEIGHT, menu.tile.getField(f))); diff --git a/src/main/java/com/lothrazar/cyclic/block/harvester/ScreenHarvester.java b/src/main/java/com/lothrazar/cyclic/block/harvester/ScreenHarvester.java index 924d56273..dee544144 100644 --- a/src/main/java/com/lothrazar/cyclic/block/harvester/ScreenHarvester.java +++ b/src/main/java/com/lothrazar/cyclic/block/harvester/ScreenHarvester.java @@ -47,8 +47,8 @@ public void init() { menu.tile.getBlockPos(), TextureEnum.DIR_DOWN, TextureEnum.DIR_UPWARDS, "gui.cyclic.direction")); //now start sliders // - y = topPos + 30; - x = leftPos + 36; + x = leftPos + 30; + y = topPos + 26; f = TileHarvester.Fields.HEIGHT.ordinal(); heightslider = this.addRenderableWidget(new GuiSliderInteger(x, y, w, h, f, menu.tile.getBlockPos(), 0, TileHarvester.MAX_HEIGHT, menu.tile.getField(f))); heightslider.setTooltip("buildertype.height.tooltip"); diff --git a/update.json b/update.json index 4bf7cbb8a..994011666 100644 --- a/update.json +++ b/update.json @@ -135,5 +135,6 @@ ,"1.8.0":"Add mouse-dragging capability to the slider controls in machines. Fluid Hoppers can now insert into cauldrons. Backport #2399 Dry Peat Bog can now hydrate from waterlogged blocks such as scaffolding. Fix spelling #2435. Clock gui-screen size reduced from large to normal. Added an optional item slot in the Block Breaker using the BlockState Data Card so players have the option to limit the block breaker to only the targets listed in the data card. Add new block data tags cyclic:ignored/breaker and cyclic:ignored/miner so that pack devs can customize these machines to not break certain blocks (regardless of hardness). Many blocks now allow minecraft:comparator to pull a redstone signal based on inventory contents (most machines and blocks that have inventory). Fluid collector will now place air and scoop up the fluid if the itemslot is empty. New feature: some machines can now be placed facing Up or Down vertically for convenience (harvester, forester, miner, item collector, fluid collector, dropper). Backported machine feature 'Preview Outline' mode on machines that already have the button. Backported cable (fluid & energy) buffer and flow speed configs from 1.20.1. Facades overhaul backported from 1.20.1: Renamed 'Concentrated Glowstone' to 'Glowstone Facade' and 'Concentrated Soundproofing' to 'Soundproofing Facade' . Backport cable facades from 1.20.1 (New feature with cables: hide them using solid blocks with a feature called 'facades', just sneak-left-click a block onto the cable; empty hand to remove it) " + ,"1.8.1":"Fixed some visual glitches" } }