From f23bdaac8c8b3b9e3f0d3db3da3c07179f1d6bf6 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Mon, 27 Jul 2015 18:54:12 +0200 Subject: [PATCH] fix replaced variable in old merge --- mods/fishing/worms.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/fishing/worms.lua b/mods/fishing/worms.lua index b9afbb23..13b33891 100755 --- a/mods/fishing/worms.lua +++ b/mods/fishing/worms.lua @@ -200,8 +200,8 @@ else minetest.set_node(pt.under, {name="farming:soil"}) minetest.sound_play("default_dig_crumbly", {pos = pt.under, gain = 0.5,}) - if math.random(1, 100) < WORM_CHANCE then - if WORM_IS_MOB == true then + if math.random(1, 100) < fishing_setting.settings["worm_chance"] then + if fishing_setting.settings["worm_is_mob"] == true then minetest.add_entity({x=pt.under.x, y=pt.under.y+0.4, z=pt.under.z}, "fishing:bait_worm_entity") else local inv = user:get_inventory()