diff --git a/patches/server/0058-Fix-doEntityDrops-gamerule-preventing-falling-blocks.patch b/patches/server/0058-Fix-doEntityDrops-gamerule-preventing-falling-blocks.patch new file mode 100644 index 0000000..60e7024 --- /dev/null +++ b/patches/server/0058-Fix-doEntityDrops-gamerule-preventing-falling-blocks.patch @@ -0,0 +1,29 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Samsuik +Date: Sun, 28 Jan 2024 20:30:09 +0000 +Subject: [PATCH] Fix doEntityDrops gamerule preventing falling blocks from + breaking + + +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 d6e357389d5f415ada4eed9f3119c4538145ddf2..f04c4e91c5a10023f8bdfd193b30233b3679c3cc 100644 +--- a/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java ++++ b/src/main/java/net/minecraft/world/entity/item/FallingBlockEntity.java +@@ -361,10 +361,14 @@ public class FallingBlockEntity extends Entity { + tileentity.setChanged(); + } + } +- } else if (this.dropItem && this.level.getGameRules().getBoolean(GameRules.RULE_DOENTITYDROPS)) { ++ // Sakura start - fix the do entity drops gamerule ++ } else { + this.discard(); +- this.callOnBrokenAfterFall(block, blockposition); +- this.spawnAtLocation((ItemLike) block); ++ if (this.dropItem && this.level.getGameRules().getBoolean(GameRules.RULE_DOENTITYDROPS)) { ++ this.callOnBrokenAfterFall(block, blockposition); ++ this.spawnAtLocation((ItemLike) block); ++ } ++ // Sakura end + } + } else { + this.discard();