mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-22 23:33:44 +01:00
Merge pull request #94 from oversword/issue-92
Use on_dig callback instead of removed after_dig_node callback
This commit is contained in:
commit
de6e0a3cc3
@ -111,8 +111,8 @@ minetest.register_node(NODE_NAME.."_defect", {
|
|||||||
can_dig = function(pos)
|
can_dig = function(pos)
|
||||||
return wh.can_dig(Box, pos)
|
return wh.can_dig(Box, pos)
|
||||||
end,
|
end,
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
on_dig = function(pos, node, player)
|
||||||
wh.after_dig_node(Box, pos, oldnode, oldmetadata, digger)
|
wh.on_dig_node(Box, pos, node, player)
|
||||||
end,
|
end,
|
||||||
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
return wh.allow_metadata_inventory_put(Box, pos, listname, index, stack, player)
|
return wh.allow_metadata_inventory_put(Box, pos, listname, index, stack, player)
|
||||||
|
@ -111,8 +111,8 @@ minetest.register_node(NODE_NAME.."_defect", {
|
|||||||
can_dig = function(pos)
|
can_dig = function(pos)
|
||||||
return wh.can_dig(Box, pos)
|
return wh.can_dig(Box, pos)
|
||||||
end,
|
end,
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
on_dig = function(pos, node, player)
|
||||||
wh.after_dig_node(Box, pos, oldnode, oldmetadata, digger)
|
wh.on_dig_node(Box, pos, node, player)
|
||||||
end,
|
end,
|
||||||
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
return wh.allow_metadata_inventory_put(Box, pos, listname, index, stack, player)
|
return wh.allow_metadata_inventory_put(Box, pos, listname, index, stack, player)
|
||||||
|
@ -111,8 +111,8 @@ minetest.register_node(NODE_NAME.."_defect", {
|
|||||||
can_dig = function(pos)
|
can_dig = function(pos)
|
||||||
return wh.can_dig(Box, pos)
|
return wh.can_dig(Box, pos)
|
||||||
end,
|
end,
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
on_dig = function(pos, node, player)
|
||||||
wh.after_dig_node(Box, pos, oldnode, oldmetadata, digger)
|
wh.on_dig_node(Box, pos, node, player)
|
||||||
end,
|
end,
|
||||||
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
return wh.allow_metadata_inventory_put(Box, pos, listname, index, stack, player)
|
return wh.allow_metadata_inventory_put(Box, pos, listname, index, stack, player)
|
||||||
|
Loading…
Reference in New Issue
Block a user