mirror of
https://github.com/minetest-mods/unifiedbricks.git
synced 2024-11-19 22:13:51 +01:00
cleaner way to call after_dig_node
This commit is contained in:
parent
f654fd883e
commit
cc67751245
8
init.lua
8
init.lua
@ -106,9 +106,7 @@ minetest.register_node("unifiedbricks:brickblock", {
|
|||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {cracky=3, not_in_creative_inventory=1},
|
groups = {cracky=3, not_in_creative_inventory=1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
unifieddyes.after_dig_node(pos, oldnode, oldmetadata, digger)
|
|
||||||
end,
|
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
unifieddyes.on_rightclick(pos, node, clicker,
|
unifieddyes.on_rightclick(pos, node, clicker,
|
||||||
itemstack, pointed_thing, "unifiedbricks:brickblock")
|
itemstack, pointed_thing, "unifiedbricks:brickblock")
|
||||||
@ -136,9 +134,7 @@ minetest.register_node("unifiedbricks:clayblock", {
|
|||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = "",
|
footstep = "",
|
||||||
}),
|
}),
|
||||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
after_dig_node = unifieddyes.after_dig_node,
|
||||||
unifieddyes.after_dig_node(pos, oldnode, oldmetadata, digger)
|
|
||||||
end,
|
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
unifieddyes.on_rightclick(pos, node, clicker,
|
unifieddyes.on_rightclick(pos, node, clicker,
|
||||||
itemstack, pointed_thing, "unifiedbricks:clayblock")
|
itemstack, pointed_thing, "unifiedbricks:clayblock")
|
||||||
|
Loading…
Reference in New Issue
Block a user