From 936cf720f4c72f7d8f173f727a5aff7b56a2d11d Mon Sep 17 00:00:00 2001 From: FatSaw Date: Sat, 9 Jul 2022 21:43:25 +0300 Subject: [PATCH] Update Explosion.java --- sources/src/main/java/net/minecraft/server/Explosion.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/src/main/java/net/minecraft/server/Explosion.java b/sources/src/main/java/net/minecraft/server/Explosion.java index a71f1b695..d19b61d8a 100644 --- a/sources/src/main/java/net/minecraft/server/Explosion.java +++ b/sources/src/main/java/net/minecraft/server/Explosion.java @@ -225,7 +225,7 @@ public class Explosion { * @return The resistance of the current block space to the ray */ private float traverseBlock(float strength, int blockX, int blockY, int blockZ, LongOpenHashSet touched) { - cachedPos.setValues(blockX, blockY, blockZ); + cachedPos.c(blockX, blockY, blockZ); IBlockData iblockdata = this.world.getType(cachedPos); // Early-exit if the y-coordinate is out of bounds. @@ -261,7 +261,7 @@ public class Explosion { ChunkSection section = chunk.getSections()[blockY >> 4]; // If the section doesn't exist or it's empty, assume that the block is air - if (section != null && !section.isEmpty()) { + if (section != null && !section.a()) { // Retrieve the block state from the chunk section directly to avoid associated overhead IBlockData blockState = section.getType(blockX & 15, blockY & 15, blockZ & 15);