LootTableReward Rewards Are Swapped When Multiple Dungeons Are Active
Issue Description: When two dungeons are active at the same time, the LootTableReward rewards are incorrectly swapped. Even if the duplicated dungeon has its LootTableReward renamed, it still gives the reward from the original dungeon instead of the newly configured one. This issue only occurs in the duplicated dungeon, while the original dungeon functions correctly. In practice, this bug consistently appears when creating multiple dungeon variants for a map by duplicating the original dungeon.
Steps to Reproduce:
-
Create a dungeon (e.g., DungeonA) and add a LootTableReward inside it (e.g., RewardA).
-
Shut down the server.
-
Copy the entire DungeonA folder and rename it to DungeonB.
-
Inside the DungeonB folder, rename the LootTableReward from RewardA to RewardB.
-
Start the server.
Test the dungeons separately:
If only DungeonB is enabled, players receive RewardB as expected.
If the DungeonB is activated first, and then the DungeonA is activated afterward, the reward in DungeonB will be incorrectly overwritten with the reward from DungeonA which is RewardA.
If the DungeonA activate first, and then DungeonB, the DungeonA will get RewardB.
Additional Note: Based on my testing, the reward swapping issue only disappears when I change the in-world location of the LootTableReward in DungeonB. If the LootTableReward in both dungeons is placed at the same coordinates, the swapping issue still occurs, regardless of any renaming or configuration changes.