mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +01:00
#1412: Fix shipwreck loot tables not being set for BlockTransformers
By: Lauriichan <lauriichan@playuniverse.org>
This commit is contained in:
parent
6d2082bf75
commit
65929a6d22
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue