mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-22 07:13:48 +01:00
Use on_dig callback instead of removed after_dig_node callback
This commit is contained in:
parent
4364f90e24
commit
5866a22720
@ -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