mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Fix stack overflow on armorstand movement
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user