From 1a6a146d6a98cd12c664a9ed1fa4bf987ad057dc Mon Sep 17 00:00:00 2001 From: violetc <58360096+s-yh-china@users.noreply.github.com> Date: Sat, 23 Jul 2022 23:07:11 +0800 Subject: [PATCH] Close Paper auto expire FallingBlockEntity --- patches/server/0004-Fix-gravity-block-duper.patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/patches/server/0004-Fix-gravity-block-duper.patch b/patches/server/0004-Fix-gravity-block-duper.patch index 2d015f47..8c4430a1 100644 --- a/patches/server/0004-Fix-gravity-block-duper.patch +++ b/patches/server/0004-Fix-gravity-block-duper.patch @@ -56,9 +56,18 @@ index 19a64b582bc042e426220e080d9c21b3a82cf3f7..ed12788bcff923986fde022883e71233 } 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 ef07967b64180c54338b8fb2ba1780adec87f333..89a0d314786477f580ab5554d6d2526c9a43d662 100644 +index ef07967b64180c54338b8fb2ba1780adec87f333..0df9c67c22af9fafc5a6f850f017ae3aa01e91b4 100644 --- a/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java +++ b/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java +@@ -61,7 +61,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); @@ -127,11 +127,7 @@ public class FallingBlockEntity extends Entity { @Override