summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-10-15 15:42:45 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-10-15 15:42:45 +0200
commit0cdd2b64ed9c99c171c0689ada24147732fb3d4b (patch)
treead7ca73e55dccdf7485819187aa1d4b09c193d23 /src
parentAdding enchantments directly instead of first getting the name of it. (diff)
downloadcuberite-0cdd2b64ed9c99c171c0689ada24147732fb3d4b.tar
cuberite-0cdd2b64ed9c99c171c0689ada24147732fb3d4b.tar.gz
cuberite-0cdd2b64ed9c99c171c0689ada24147732fb3d4b.tar.bz2
cuberite-0cdd2b64ed9c99c171c0689ada24147732fb3d4b.tar.lz
cuberite-0cdd2b64ed9c99c171c0689ada24147732fb3d4b.tar.xz
cuberite-0cdd2b64ed9c99c171c0689ada24147732fb3d4b.tar.zst
cuberite-0cdd2b64ed9c99c171c0689ada24147732fb3d4b.zip
Diffstat (limited to '')
-rw-r--r--src/Enchantments.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Enchantments.cpp b/src/Enchantments.cpp
index 3cddf37ae..10d23a8fb 100644
--- a/src/Enchantments.cpp
+++ b/src/Enchantments.cpp
@@ -1030,7 +1030,7 @@ cEnchantments cEnchantments::GenerateEnchantmentFromVector(cWeightedEnchantments
}
cNoise Noise(a_Seed);
- int RandomNumber = Noise.IntNoise1DInt(AllWeights) % AllWeights;
+ int RandomNumber = Noise.IntNoise1DInt(AllWeights) / 7 % AllWeights;
for (cWeightedEnchantments::iterator it = a_Enchantments.begin(); it != a_Enchantments.end(); ++it)
{