From eeb7dfc2ddaf7ccf05e7f3788a8e5deb435a78b4 Mon Sep 17 00:00:00 2001 From: DerFrZocker Date: Tue, 14 Nov 2023 20:16:20 +0100 Subject: [PATCH] SPIGOT-7520: Attribute LootTableSeed missing for generated containers with attached LootTable --- .../levelgen/structure/templatesystem/DefinedStructure.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/net/minecraft/world/level/levelgen/structure/templatesystem/DefinedStructure.patch b/nms-patches/net/minecraft/world/level/levelgen/structure/templatesystem/DefinedStructure.patch index b32090b82..b118de001 100644 --- a/nms-patches/net/minecraft/world/level/levelgen/structure/templatesystem/DefinedStructure.patch +++ b/nms-patches/net/minecraft/world/level/levelgen/structure/templatesystem/DefinedStructure.patch @@ -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()); }