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){ 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() {