Fix stack overflow on armorstand movement

This commit is contained in:
BillyGalbreath
2021-03-22 12:19:55 -05:00
parent f754a7b616
commit 75b07a03d2

View File

@@ -30,7 +30,7 @@ index 904bca540a42204a9856765e333eee6c5de6a960..ee1f0ccce5c5c920b2595ced9e72fd15
this.inWater = false;
} else if (this.a((Tag) TagsFluid.WATER, 0.014D)) {
diff --git a/src/main/java/net/minecraft/world/entity/decoration/EntityArmorStand.java b/src/main/java/net/minecraft/world/entity/decoration/EntityArmorStand.java
index 43dc0925887e2e9e86445cccff57be7994ca0d58..72869cf01f0cb52260603f5f63855b29778640e9 100644
index 43dc0925887e2e9e86445cccff57be7994ca0d58..ecb797e67554d30e35b3aca4d0fc9b0e3f6c1a50 100644
--- a/src/main/java/net/minecraft/world/entity/decoration/EntityArmorStand.java
+++ b/src/main/java/net/minecraft/world/entity/decoration/EntityArmorStand.java
@@ -36,6 +36,7 @@ import net.minecraft.world.item.ItemStack;
@@ -64,7 +64,7 @@ index 43dc0925887e2e9e86445cccff57be7994ca0d58..72869cf01f0cb52260603f5f63855b29
+ public void updateInWaterStateAndDoWaterCurrentPushing() {
+ if (this.world.purpurConfig.armorstandWaterMovement &&
+ (this.world.purpurConfig.armorstandWaterFence || !(world.getType(getBlockLocation().down()).getBlock() instanceof BlockFence)))
+ super.aL();
+ super.updateInWaterStateAndDoWaterCurrentPushing();
+ }
+
+ @Override