mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 10:44:39 +01:00
SPIGOT-7520: Attribute LootTableSeed missing for generated containers with attached LootTable
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
parent
3e6f41a01b
commit
efb9f1bd5c
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@
|
|||
tileentity = worldaccess.getBlockEntity(blockposition2);
|
||||
if (tileentity != null) {
|
||||
- if (tileentity instanceof TileEntityLootable) {
|
||||
+ if (wrappedAccess == worldaccess && tileentity instanceof TileEntityLootable) { // CraftBukkit - only process if don't have a transformer access (originalAccess == worldaccess)
|
||||
+ 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
|
||||
definedstructure_blockinfo.nbt.putLong("LootTableSeed", randomsource.nextLong());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue