summaryrefslogtreecommitdiffstats
path: root/src/Enchantments.h
diff options
context:
space:
mode:
author12xx12 <44411062+12xx12@users.noreply.github.com>2020-09-17 00:01:20 +0200
committerGitHub <noreply@github.com>2020-09-17 00:01:20 +0200
commit53549a1a4ce320c1e3f449165c290c74d3de54d4 (patch)
tree5f7d6cda28281d381bbecf7cb0f3b820057000b4 /src/Enchantments.h
parentFixed doors not breakable by piston (#4869) (diff)
downloadcuberite-53549a1a4ce320c1e3f449165c290c74d3de54d4.tar
cuberite-53549a1a4ce320c1e3f449165c290c74d3de54d4.tar.gz
cuberite-53549a1a4ce320c1e3f449165c290c74d3de54d4.tar.bz2
cuberite-53549a1a4ce320c1e3f449165c290c74d3de54d4.tar.lz
cuberite-53549a1a4ce320c1e3f449165c290c74d3de54d4.tar.xz
cuberite-53549a1a4ce320c1e3f449165c290c74d3de54d4.tar.zst
cuberite-53549a1a4ce320c1e3f449165c290c74d3de54d4.zip
Diffstat (limited to 'src/Enchantments.h')
-rw-r--r--src/Enchantments.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Enchantments.h b/src/Enchantments.h
index cdd1f640e..40dbee038 100644
--- a/src/Enchantments.h
+++ b/src/Enchantments.h
@@ -140,7 +140,7 @@ public:
static void CheckEnchantmentConflictsFromVector(cWeightedEnchantments & a_Enchantments, const cEnchantments & a_FirstEnchantment);
/** Gets random enchantment from Vector and returns it */
- static cEnchantments GetRandomEnchantmentFromVector(cWeightedEnchantments & a_Enchantments);
+ static cEnchantments GetRandomEnchantmentFromVector(const cWeightedEnchantments & a_Enchantments);
/** Selects one enchantment from a Vector using cNoise. Mostly used for generators.
Uses the enchantments' weights for the random distribution.