File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/dev/tr7zw/entityculling Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 99public class Provider implements DataProvider {
1010
1111 private final Minecraft client = Minecraft .getMinecraft ();
12+ private final BlockPos .MutableBlockPos pos = new BlockPos .MutableBlockPos ();
1213 private WorldClient world = null ;
13-
14+
1415 @ Override
1516 public boolean prepareChunk (int chunkX , int chunkZ ) {
1617 world = client .theWorld ;
@@ -19,8 +20,7 @@ public boolean prepareChunk(int chunkX, int chunkZ) {
1920
2021 @ Override
2122 public boolean isOpaqueFullCube (int x , int y , int z ) {
22- BlockPos pos = new BlockPos (x , y , z );
23- return world .getBlockState (pos ).getBlock ().isOpaqueCube ();
23+ return world .getBlockState (pos .set (x , y , z )).getBlock ().isOpaqueCube ();
2424 }
2525
2626 @ Override
You can’t perform that action at this time.
0 commit comments