fix water lightning

This commit is contained in:
LabyStudio
2022-02-02 15:38:15 +01:00
parent 010d883273
commit c5fd75de47
5 changed files with 32 additions and 14 deletions
+2 -2
View File
@@ -112,7 +112,7 @@ window.World = class {
}
blockExists(x, y, z) {
if (y < 0 || y >= 128) {
if (y < 0 || y >= World.TOTAL_HEIGHT) {
return false;
} else {
return this.chunkExists(x >> 4, z >> 4);
@@ -167,7 +167,7 @@ window.World = class {
}
getSavedLightValue(sourceType, x, y, z) {
if (!this.chunkExists(x >> 4, z >> 4)) {
if (!this.blockExists(x, y, z)) {
return 15;
}