1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-29 07:50:35 +02:00

fix replaced variable in old merge

This commit is contained in:
crabman77 2015-07-27 18:54:12 +02:00
parent b26a0e4f29
commit f23bdaac8c

View File

@ -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()