From ed70c43be4cdf487292eec1dda13ec7acb0c2871 Mon Sep 17 00:00:00 2001 From: violetc <58360096+s-yh-china@users.noreply.github.com> Date: Thu, 29 Jun 2023 14:12:19 +0800 Subject: [PATCH] Fix falling block not expire (#51) --- patches/server/0005-Fix-gravity-block-duper.patch | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/patches/server/0005-Fix-gravity-block-duper.patch b/patches/server/0005-Fix-gravity-block-duper.patch index dd64d521..d6e90b25 100644 --- a/patches/server/0005-Fix-gravity-block-duper.patch +++ b/patches/server/0005-Fix-gravity-block-duper.patch @@ -56,18 +56,9 @@ index ca82b601e99a64038e71b051510f6d1cc57b2f8f..8a30a18a24986f0c54483f69410e5dac } diff --git a/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java b/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java -index eff81e846f696349b3bd3d26c02442f157b169f0..0352808f4b2783e7f941c6224f5929b98b95d51e 100644 +index eff81e846f696349b3bd3d26c02442f157b169f0..652070db14065a66b46ffcebbb2c0c2ad2db6f2a 100644 --- a/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java +++ b/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java -@@ -64,7 +64,7 @@ public class FallingBlockEntity extends Entity { - @Nullable - public CompoundTag blockData; - protected static final EntityDataAccessor DATA_START_POS = SynchedEntityData.defineId(FallingBlockEntity.class, EntityDataSerializers.BLOCK_POS); -- public boolean autoExpire = true; // Paper - Auto expire setting -+ public boolean autoExpire = false; // Paper - Auto expire setting -> Leaves - close it - - public FallingBlockEntity(EntityType type, Level world) { - super(type, world); @@ -130,11 +130,7 @@ public class FallingBlockEntity extends Entity { @Override