From d68c61410c00148a4e78d65949ca40ec1e31876e Mon Sep 17 00:00:00 2001 From: msg-programs Date: Sun, 13 Aug 2023 21:54:53 +0200 Subject: Rework some dungeon screens from the rp, fix collideWith op to make them work correctly --- .../skyblock/tabhud/screenbuilder/pipeline/CollideStage.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/screenbuilder/pipeline/CollideStage.java b/src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/screenbuilder/pipeline/CollideStage.java index 187dc9f9..5f4cb1c9 100644 --- a/src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/screenbuilder/pipeline/CollideStage.java +++ b/src/main/java/me/xmrvizzy/skyblocker/skyblock/tabhud/screenbuilder/pipeline/CollideStage.java @@ -70,7 +70,7 @@ public class CollideStage extends PipelineStage { int yMin = w.getY(); int yMax = w.getY() + w.getHeight(); - int xCor = screenW / 2; + int xCor = screenW; for (Widget other : secondary) { if (other.getY() + other.getHeight() + ScreenConst.WIDGET_PAD < yMin) { @@ -93,7 +93,7 @@ public class CollideStage extends PipelineStage { int yMin = w.getY(); int yMax = w.getY() + w.getHeight(); - int xCor = screenW / 2; + int xCor = 0; for (Widget other : secondary) { if (other.getY() + other.getHeight() + ScreenConst.WIDGET_PAD < yMin) { @@ -116,7 +116,7 @@ public class CollideStage extends PipelineStage { int xMin = w.getX(); int xMax = w.getX() + w.getWidth(); - int yCor = screenH / 2; + int yCor = screenH; for (Widget other : secondary) { if (other.getX() + other.getWidth() + ScreenConst.WIDGET_PAD < xMin) { @@ -139,7 +139,7 @@ public class CollideStage extends PipelineStage { int xMin = w.getX(); int xMax = w.getX() + w.getWidth(); - int yCor = screenH / 2; + int yCor = 0; for (Widget other : secondary) { if (other.getX() + other.getWidth() + ScreenConst.WIDGET_PAD < xMin) { -- cgit