From b3c4f3737d199673514be8111cea21c4648aaaea Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Thu, 25 Jan 2024 15:28:33 +0100 Subject: [PATCH 1/2] Webapp: Fix screen-pos calculation on click --- BlueMapCommon/webapp/src/js/MapViewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BlueMapCommon/webapp/src/js/MapViewer.js b/BlueMapCommon/webapp/src/js/MapViewer.js index 2fc80713..840aa588 100644 --- a/BlueMapCommon/webapp/src/js/MapViewer.js +++ b/BlueMapCommon/webapp/src/js/MapViewer.js @@ -179,8 +179,8 @@ export class MapViewer { handleMapInteraction(screenPosition, data = {}) { let rootOffset = elementOffset(this.rootElement); let normalizedScreenPos = new Vector2( - ((screenPosition.x - rootOffset.top) / this.rootElement.clientWidth) * 2 - 1, - -((screenPosition.y - rootOffset.left) / this.rootElement.clientHeight) * 2 + 1 + ((screenPosition.x - rootOffset.left) / this.rootElement.clientWidth) * 2 - 1, + -((screenPosition.y - rootOffset.top) / this.rootElement.clientHeight) * 2 + 1 ); if (this.map && this.map.isLoaded){ From efd45658d5168ec5c45bbe8d60e9db4793040c98 Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Sat, 3 Feb 2024 00:59:41 +0100 Subject: [PATCH 2/2] Fix empty blockstates having the wrong block-properties --- .../de/bluecolored/bluemap/core/world/BlockProperties.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/world/BlockProperties.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/world/BlockProperties.java index 527360da..f5a31eff 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/world/BlockProperties.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/world/BlockProperties.java @@ -57,11 +57,11 @@ public class BlockProperties { } public boolean isCulling() { - return culling.getOr(true); + return culling.getOr(false); } public boolean isOccluding() { - return occluding.getOr(true); + return occluding.getOr(false); } public boolean isAlwaysWaterlogged() {