Fiz tool when place

master
BrunoMine 2020-04-15 00:05:53 -03:00
parent 67853cb7da
commit ee6b234437
1 changed files with 2 additions and 2 deletions

View File

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