summaryrefslogtreecommitdiffstats
path: root/src/ItemGrid.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-10-15 14:44:07 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-10-15 14:44:07 +0200
commitff5f57514e172e3344d6d50fce6bd8ea84e7f32b (patch)
treec3988d3d4b12ee37770ed026425bfa7b07f84dba /src/ItemGrid.cpp
parentEnchanted books generate in MineShafts chests (diff)
downloadcuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar
cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.gz
cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.bz2
cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.lz
cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.xz
cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.zst
cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.zip
Diffstat (limited to '')
-rw-r--r--src/ItemGrid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ItemGrid.cpp b/src/ItemGrid.cpp
index 68e753e08..a5273c6da 100644
--- a/src/ItemGrid.cpp
+++ b/src/ItemGrid.cpp
@@ -646,7 +646,7 @@ void cItemGrid::GenerateRandomLootWithBooks(const cLootProbab * a_LootProbabs, s
for (int I = 0; I <= NumEnchantments; I++)
{
- cEnchantments Enchantment = cEnchantments::GetRandomEnchantmentFromVector(Enchantments, a_Seed);
+ cEnchantments Enchantment = cEnchantments::GenerateEnchantmentFromVector(Enchantments, Noise.IntNoise2DInt(NumEnchantments, i));
CurrentLoot.m_Enchantments.AddFromString(Enchantment.ToString());
cEnchantments::RemoveEnchantmentWeightFromVector(Enchantments, Enchantment);
}