#1412: Fix shipwreck loot tables not being set for BlockTransformers

By: Lauriichan <lauriichan@playuniverse.org>
This commit is contained in:
CraftBukkit/Spigot 2024-06-05 07:17:32 +10:00
parent 6d2082bf75
commit 65929a6d22

View file

@ -0,0 +1,15 @@
--- a/net/minecraft/world/level/levelgen/structure/structures/ShipwreckPieces.java
+++ b/net/minecraft/world/level/levelgen/structure/structures/ShipwreckPieces.java
@@ -79,7 +79,12 @@
ResourceKey<LootTable> resourcekey = (ResourceKey) ShipwreckPieces.MARKERS_TO_LOOT.get(s);
if (resourcekey != null) {
+ // CraftBukkit start - ensure block transformation
+ /*
RandomizableContainer.setBlockEntityLootTable(worldaccess, randomsource, blockposition.below(), resourcekey);
+ */
+ setCraftLootTable(worldaccess, blockposition.below(), randomsource, resourcekey);
+ // CraftBukkit end
}
}