@@ -6,7 +6,7 @@
|
||||
if (structureboundingbox.isInside(blockposition1)) {
|
||||
+ // CraftBukkit start - ensure block transformation
|
||||
+ /*
|
||||
TileEntityLootable.setLootTable(worldaccess, randomsource, blockposition1, LootTables.END_CITY_TREASURE);
|
||||
RandomizableContainer.setBlockEntityLootTable(worldaccess, randomsource, blockposition1, LootTables.END_CITY_TREASURE);
|
||||
+ */
|
||||
+ setCraftLootTable(worldaccess, blockposition1, randomsource, LootTables.END_CITY_TREASURE);
|
||||
+ // CraftBukkit end
|
||||
|
||||
@@ -79,8 +79,8 @@
|
||||
if (definedstructure_blockinfo.nbt != null) {
|
||||
tileentity = worldaccess.getBlockEntity(blockposition2);
|
||||
if (tileentity != null) {
|
||||
- if (tileentity instanceof TileEntityLootable) {
|
||||
+ if (structureTransformer == null && tileentity instanceof TileEntityLootable) { // CraftBukkit - only process if don't have a transformer access (Was already set above) - SPIGOT-7520: Use structureTransformer as check, so that it is the same as above
|
||||
- if (tileentity instanceof RandomizableContainer) {
|
||||
+ if (structureTransformer == null && tileentity instanceof RandomizableContainer) { // CraftBukkit - only process if don't have a transformer access (Was already set above) - SPIGOT-7520: Use structureTransformer as check, so that it is the same as above
|
||||
definedstructure_blockinfo.nbt.putLong("LootTableSeed", randomsource.nextLong());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user