summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-01-01 17:41:49 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-01-01 17:41:49 +0000
commit9d653f894c9d3bf64ed6f8450136e073fa83ce25 (patch)
tree9e46bec3b89f3c37276db849faf4f50178dbf52f
parent93ca01de003d132cb09c73740faf7e5df229f11a (diff)
min to max
-rw-r--r--api.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.lua b/api.lua
index f0fa541..4f3c1e9 100644
--- a/api.lua
+++ b/api.lua
@@ -2835,7 +2835,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light,
nodenames = nodes,
neighbors = neighbors,
interval = interval,
- chance = min(1, (chance * mob_chance_multiplier)),
+ chance = max(1, (chance * mob_chance_multiplier)),
catch_up = false,
action = function(pos, node, active_object_count, active_object_count_wider)