[Fix] Place Command would remove LootTable from storage containers
This commit is contained in:
parent
2496ddf9e6
commit
9e1d0199a8
1 changed files with 1 additions and 1 deletions
|
@ -463,7 +463,7 @@ public class PlaceCommand {
|
|||
private static void removeLootTableSeed(Level level, BoundingBox bb) {
|
||||
BlocksHelper.forAllInBounds(bb, (bp) -> {
|
||||
if (level.getBlockEntity(bp) instanceof RandomizableContainerBlockEntity rnd) {
|
||||
rnd.setLootTable(null, 0);
|
||||
rnd.setLootTable(rnd.lootTable, 0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue