From 383a42b10e28e543f3e36282d70a5bec1488ffc7 Mon Sep 17 00:00:00 2001 From: Aikar Date: Sat, 10 Mar 2018 16:33:15 -0500 Subject: [PATCH] Prevent Frosted Ice from loading/holding chunks diff --git a/src/main/java/net/minecraft/server/BlockIceFrost.java b/src/main/java/net/minecraft/server/BlockIceFrost.java index 302d420512..c97937e810 100644 --- a/src/main/java/net/minecraft/server/BlockIceFrost.java +++ b/src/main/java/net/minecraft/server/BlockIceFrost.java @@ -25,6 +25,12 @@ public class BlockIceFrost extends BlockIce { EnumDirection enumdirection = aenumdirection[j]; blockposition_b.j(blockposition).d(enumdirection); + + // Paper start - Prevent Frosted Ice from loading/holding chunks + if (!world.isChunkLoaded(blockposition_b.getX() >> 4, blockposition_b.getZ() >> 4, true)) + continue; + // Paper end - Prevent Frosted Ice from loading/holding chunks + IBlockData iblockdata1 = world.getType(blockposition_b); if (iblockdata1.getBlock() == this && !this.c(iblockdata1, world, blockposition_b)) { @@ -87,6 +93,10 @@ public class BlockIceFrost extends BlockIce { EnumDirection enumdirection = aenumdirection[l]; blockposition_b.j(blockposition).d(enumdirection); + // Paper start - Prevent Frosted Ice from loading/holding chunks + if (!((World) iblockaccess).isChunkLoaded(blockposition_b.getX() >> 4, blockposition_b.getZ() >> 4, true)) + continue; + // Paper end - Prevent Frosted Ice from loading/holding chunks if (iblockaccess.getType(blockposition_b).getBlock() == this) { ++j; if (j >= i) { -- 2.18.0