2020-04-02 21:07:06 +00:00
|
|
|
From 78c923236c7a238eabab0ff9c203ced8c36c26ac Mon Sep 17 00:00:00 2001
|
2018-07-18 18:55:52 +00:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
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
|
2020-04-02 21:07:06 +00:00
|
|
|
index 5e414138e4..638a0aa5ae 100644
|
2018-07-18 18:55:52 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/BlockIceFrost.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockIceFrost.java
|
2019-12-11 23:43:22 +00:00
|
|
|
@@ -26,8 +26,8 @@ public class BlockIceFrost extends BlockIce {
|
2019-01-01 03:15:55 +00:00
|
|
|
EnumDirection enumdirection = aenumdirection[j];
|
|
|
|
|
2019-03-20 01:46:00 +00:00
|
|
|
blockposition_pooledblockposition.g(blockposition).c(enumdirection);
|
2019-12-11 23:43:22 +00:00
|
|
|
- IBlockData iblockdata1 = worldserver.getType(blockposition_pooledblockposition);
|
|
|
|
-
|
|
|
|
+ IBlockData iblockdata1 = worldserver.getTypeIfLoaded(blockposition_pooledblockposition); // Paper - don't load chunks
|
2018-08-31 22:56:57 +00:00
|
|
|
+ if (iblockdata1 == null) continue; // Paper
|
2019-12-11 23:43:22 +00:00
|
|
|
if (iblockdata1.getBlock() == this && !this.e(iblockdata1, (World) worldserver, blockposition_pooledblockposition)) {
|
|
|
|
worldserver.getBlockTickList().a(blockposition_pooledblockposition, this, MathHelper.nextInt(random, worldserver.paperConfig.frostedIceDelayMin, worldserver.paperConfig.frostedIceDelayMax)); // Paper - use configurable min/max delay
|
|
|
|
}
|
|
|
|
@@ -89,7 +89,7 @@ public class BlockIceFrost extends BlockIce {
|
2019-01-01 03:15:55 +00:00
|
|
|
EnumDirection enumdirection = aenumdirection[l];
|
|
|
|
|
2019-03-20 01:46:00 +00:00
|
|
|
blockposition_pooledblockposition.g(blockposition).c(enumdirection);
|
|
|
|
- if (iblockaccess.getType(blockposition_pooledblockposition).getBlock() == this) {
|
|
|
|
+ if (((World) iblockaccess).getBlockIfLoaded(blockposition_pooledblockposition) == this) { // Paper - don't load chunks
|
2018-07-18 18:55:52 +00:00
|
|
|
++j;
|
|
|
|
if (j >= i) {
|
2018-08-31 22:56:57 +00:00
|
|
|
boolean flag = false;
|
2018-07-18 18:55:52 +00:00
|
|
|
--
|
2020-04-02 21:07:06 +00:00
|
|
|
2.25.1
|
2018-07-18 18:55:52 +00:00
|
|
|
|