init.lua: fix undefined global variable error

master
Starbeamrainbowlabs 2020-09-13 19:52:55 +01:00 committed by GitHub
parent df3f72f2e2
commit c0e94c1f67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ end
--If the entitycontrol mod is active, this will allow full lava buckets to incinerate items thrown "into" them.
--Bucket collision is technically just a solid cube, so it's enough for the item to just land on top.
if entitycontrol and minetest.settings:get_bool("placeable_buckets_lava_buckets_incinerate_items") then
if minetest.get_modpath("entitycontrol") and minetest.settings:get_bool("placeable_buckets_lava_buckets_incinerate_items") then
--Get the item's current on_step method.
local old_on_step = minetest.registered_entities["__builtin:item"].on_step
--Override it with this extended version of the method.