remove unwanted code
parent
922895c761
commit
338d8cc871
2
init.lua
2
init.lua
|
@ -61,7 +61,7 @@ minetest.register_tool("replacer:replacer", {
|
|||
inventory_image = "replacer_replacer.png",
|
||||
stack_max = 1, -- it has to store information - thus only one can be stacked
|
||||
liquids_pointable = true, -- it is ok to painit in/with water
|
||||
--~ node_placement_prediction = nil,
|
||||
--node_placement_prediction = nil,
|
||||
metadata = "default:dirt", -- default replacement: common dirt
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
|
|
|
@ -25,15 +25,12 @@ minetest.register_tool("replacer:inspect",
|
|||
wield_image = "",
|
||||
wield_scale = {x=1,y=1,z=1},
|
||||
liquids_pointable = true, -- it is ok to request information about liquids
|
||||
node_placement_prediction = nil,
|
||||
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
|
||||
return replacer.inspect(itemstack, user, pointed_thing, nil, true); --false)
|
||||
end,
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
|
||||
return replacer.inspect(itemstack, placer, pointed_thing, nil, true)
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue