fixed smallblock deletion

This commit is contained in:
Kurtzmusch 2019-04-28 22:33:02 -03:00
parent 7b89b978e6
commit b8b4b91ae4

View File

@ -99,9 +99,6 @@ common.on_right_click = function( position, node, clicker, itemstack, pointed_th
end
minetest.log("none", "result " .. util.bitmap_to_integer( finalBitmap ) )
local finalNode_name = smallblocks.int_name_map[util.bitmap_to_integer( finalBitmap )]
if( finalNode_name == "1" ) then
finalNode_name = "smallblock"
end
local finalNode_facedir = smallblocks.int_facedir_map[util.bitmap_to_integer( finalBitmap )]
local finalNode = { name="k_smallblocks:"..finalNode_name.."_"..targetNode_materialName, param2=finalNode_facedir }
minetest.swap_node( target_node_position, finalNode )