diff --git a/src/js/net/minecraft/client/Minecraft.js b/src/js/net/minecraft/client/Minecraft.js index 5c06ae3..f53773b 100644 --- a/src/js/net/minecraft/client/Minecraft.js +++ b/src/js/net/minecraft/client/Minecraft.js @@ -231,7 +231,6 @@ window.Minecraft = class { } isPaused() { - return false; - //return !this.hasInGameFocus() && this.loadingScreen === null; + return !this.hasInGameFocus() && this.loadingScreen === null; } } \ No newline at end of file diff --git a/src/js/net/minecraft/client/entity/Player.js b/src/js/net/minecraft/client/entity/Player.js index fb24a15..f4f181f 100644 --- a/src/js/net/minecraft/client/entity/Player.js +++ b/src/js/net/minecraft/client/entity/Player.js @@ -311,9 +311,9 @@ window.Player = class { let sneaking = false; if (this.minecraft.hasInGameFocus()) { - /*if (Keyboard.isKeyDown("KeyR")) { // R - this.respawn(); - }*/ + if (Keyboard.isKeyDown("KeyR")) { // R + // this.respawn(); + } if (Keyboard.isKeyDown("KeyW")) { // W moveForward++; } diff --git a/src/js/net/minecraft/client/world/World.js b/src/js/net/minecraft/client/world/World.js index 3cba175..b5e1587 100644 --- a/src/js/net/minecraft/client/world/World.js +++ b/src/js/net/minecraft/client/world/World.js @@ -235,6 +235,9 @@ window.World = class { let section = this.getChunkSectionAt(x >> 4, y >> 4, z >> 4) section.setLightAt(sourceType, x & 15, y & 15, z & 15, lightLevel); + + // Rebuild chunk + this.onBlockChanged(x, y, z); } isSolidBlockAt(x, y, z) { @@ -288,7 +291,7 @@ window.World = class { for (let x = minX; x <= maxX; x++) { for (let y = minY; y <= maxY; y++) { for (let z = minZ; z <= maxZ; z++) { - if (this.chunkExists(x >> 4, z >> 4)) { + if (this.chunkExists(x, z)) { this.getChunkSectionAt(x, y, z).isModified = true; } }