Skip to content

Commit 9020626

Browse files
committed
Don't save falling block entity
1 parent 7a5bf85 commit 9020626

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: MidnightTale <[email protected]>
3+
Date: Fri, 25 Jul 2025 10:50:28 +0700
4+
Subject: [PATCH] Leaf: Don't save falling block entity
5+
6+
As part of: Leaf (https://github.com/Winds-Studio/Leaf/blob/006fe7ce3a58e687183271f02e1331f23fc5bd99/leaf-server/minecraft-patches/features/0138-Don-t-save-falling-block-entity.patch)
7+
Licensed under: MIT (https://github.com/Winds-Studio/Leaf/blob/006fe7ce3a58e687183271f02e1331f23fc5bd99/LICENSE.md)
8+
9+
diff --git a/net/minecraft/world/entity/item/FallingBlockEntity.java b/net/minecraft/world/entity/item/FallingBlockEntity.java
10+
index c444c4b7dc8454abd257030a8c59b9b22b9013d9..8fe609d6506edfe26067af196188a395f9ba966b 100644
11+
--- a/net/minecraft/world/entity/item/FallingBlockEntity.java
12+
+++ b/net/minecraft/world/entity/item/FallingBlockEntity.java
13+
@@ -390,4 +390,11 @@ public class FallingBlockEntity extends Entity {
14+
this.forceTickAfterTeleportToDuplicate = entity != null && flag && (io.papermc.paper.configuration.GlobalConfiguration.get().unsupportedSettings.allowUnsafeEndPortalTeleportation || me.earthme.luminol.config.modules.fixes.UnsafeTeleportationConfig.enabled); // Paper // Luminol - Unsafe teleportation
15+
return entity;
16+
}
17+
+
18+
+ // Leaf start - PMC - Don't save falling block entity
19+
+ @Override
20+
+ public boolean shouldBeSaved() {
21+
+ return !fun.mntale.atdeprecated.config.AtCoreConfig.ENTITY_CONFIG.dontSaveFallingBlock && super.shouldBeSaved();
22+
+ }
23+
+ // Leaf end - PMC - Don't save falling block entity
24+
}

0 commit comments

Comments
 (0)