Fix up mod.conf and a type check
This commit is contained in:
parent
8d81c597a5
commit
ff314c727f
2
init.lua
2
init.lua
@ -68,7 +68,7 @@ function lavastuff.burn_drops(tool)
|
|||||||
local old_handle_node_drops = minetest.handle_node_drops
|
local old_handle_node_drops = minetest.handle_node_drops
|
||||||
|
|
||||||
function minetest.handle_node_drops(pos, drops, digger)
|
function minetest.handle_node_drops(pos, drops, digger)
|
||||||
if type(digger) == "userdata" and digger:get_wielded_item():get_name() ~= (tool) then
|
if not digger or digger:get_wielded_item():get_name() ~= (tool) then
|
||||||
return old_handle_node_drops(pos, drops, digger)
|
return old_handle_node_drops(pos, drops, digger)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
2
mod.conf
2
mod.conf
@ -3,4 +3,4 @@ author = Lone_Wolf
|
|||||||
description = Adds lava tools, armor, and blocks
|
description = Adds lava tools, armor, and blocks
|
||||||
release = 0
|
release = 0
|
||||||
title = Lava Stuff
|
title = Lava Stuff
|
||||||
optional_depends = fire, stairs, mobs_monster, 3d_armor, toolranks, moreblocks, vessels, default, bucket, mcl_armor, mcl_fire, mcl_buckets, mcl_nether, mcl_potions, mcl_core, mcl_mobitems, mcl_tools, nc_fire,
|
optional_depends = fire, stairs, mobs_monster, 3d_armor, toolranks, moreblocks, vessels, default, bucket, mcl_armor, mcl_fire, mcl_buckets, mcl_nether, mcl_potions, mcl_core, mcl_mobitems, mcl_tools, nc_fire
|
||||||
|
Loading…
x
Reference in New Issue
Block a user