Skip to content

Commit

Permalink
works again with latest mt
Browse files Browse the repository at this point in the history
  • Loading branch information
Sokomine committed Jul 3, 2017
1 parent b58252e commit 81734a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init.lua
Expand Up @@ -50,6 +50,7 @@ minetest.register_tool( "replacer:replacer",
wield_scale = {x=1,y=1,z=1},
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
--[[
-- the tool_capabilities are of nearly no intrest here
tool_capabilities = {
full_punch_interval = 1.0,
Expand All @@ -61,6 +62,7 @@ minetest.register_tool( "replacer:replacer",
choppy={times={[3]=0.90}, maxwear=0.05, maxlevel=0}
}
},
--]]
node_placement_prediction = nil,
metadata = "default:dirt", -- default replacement: common dirt
Expand Down
2 changes: 2 additions & 0 deletions inspect.lua
Expand Up @@ -25,6 +25,7 @@ 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
--[[
-- the tool_capabilities are of no intrest here; it is not for digging
tool_capabilities = {
full_punch_interval = 1.0,
Expand All @@ -35,6 +36,7 @@ minetest.register_tool( "replacer:inspect",
choppy={times={[3]=0.90}, maxwear=0.05, maxlevel=0}
}
},
--]]
node_placement_prediction = nil,
on_use = function(itemstack, user, pointed_thing)
Expand Down

0 comments on commit 81734a6

Please sign in to comment.