Fiz tool when place
parent
67853cb7da
commit
ee6b234437
|
@ -283,7 +283,7 @@ hardtorch.register_tool = function(torchname, def)
|
|||
|
||||
local sucess
|
||||
itemstack, sucess = minetest.item_place(itemstack, placer, pointed_thing)
|
||||
if sucess == nil then
|
||||
if sucess == nil or sucess == false then
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -413,7 +413,7 @@ hardtorch.register_tool = function(torchname, def)
|
|||
|
||||
local sucess
|
||||
itemstack, sucess = minetest.item_place(itemstack, placer, pointed_thing)
|
||||
if sucess == nil then
|
||||
if sucess == nil or sucess == false then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue