diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-10-15 15:44:52 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-10-15 15:44:52 +0200 |
commit | fa6f8fb38e8bb4a2d047ff9dee3ee57b10b5cf1b (patch) | |
tree | d83e6a949d17e016d67023d431556d439b958baf | |
parent | IntNoise1DInt result gets devided by 7 first (diff) | |
download | cuberite-fa6f8fb38e8bb4a2d047ff9dee3ee57b10b5cf1b.tar cuberite-fa6f8fb38e8bb4a2d047ff9dee3ee57b10b5cf1b.tar.gz cuberite-fa6f8fb38e8bb4a2d047ff9dee3ee57b10b5cf1b.tar.bz2 cuberite-fa6f8fb38e8bb4a2d047ff9dee3ee57b10b5cf1b.tar.lz cuberite-fa6f8fb38e8bb4a2d047ff9dee3ee57b10b5cf1b.tar.xz cuberite-fa6f8fb38e8bb4a2d047ff9dee3ee57b10b5cf1b.tar.zst cuberite-fa6f8fb38e8bb4a2d047ff9dee3ee57b10b5cf1b.zip |
-rw-r--r-- | src/ItemGrid.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ItemGrid.cpp b/src/ItemGrid.cpp index cd77d52e1..6a3d08679 100644 --- a/src/ItemGrid.cpp +++ b/src/ItemGrid.cpp @@ -649,6 +649,7 @@ void cItemGrid::GenerateRandomLootWithBooks(const cLootProbab * a_LootProbabs, s cEnchantments Enchantment = cEnchantments::GenerateEnchantmentFromVector(Enchantments, Noise.IntNoise2DInt(NumEnchantments, i)); CurrentLoot.m_Enchantments.Add(Enchantment); cEnchantments::RemoveEnchantmentWeightFromVector(Enchantments, Enchantment); + cEnchantments::CheckEnchantmentConflictsFromVector(Enchantments, Enchantment); } for (size_t j = 0; j < a_CountLootProbabs; j++) |