Merge branch 'master' into fix/heightmaps

This commit is contained in:
Lukas Rieger (Blue) 2024-02-03 01:00:16 +01:00
commit 62f382313d
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
2 changed files with 4 additions and 4 deletions

View File

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

View File

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