Fix various code typos/issues
This commit is contained in:
parent
13a50925f1
commit
bcb6c0dbb4
@ -194,7 +194,7 @@ out the tool, remove the node, and run the `after_dig_node` callback.
|
|||||||
minetest.register_node("mymod:mynode", {
|
minetest.register_node("mymod:mynode", {
|
||||||
on_punch = function(pos, node, puncher, pointed_thing)
|
on_punch = function(pos, node, puncher, pointed_thing)
|
||||||
if puncher:is_player() then
|
if puncher:is_player() then
|
||||||
minetest.chat_send_player(clicker:get_player_name(), "Ow!")
|
minetest.chat_send_player(puncher:get_player_name(), "Ow!")
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -80,7 +80,7 @@ minetest.register_abm({
|
|||||||
nodenames = {"default:dirt_with_grass"},
|
nodenames = {"default:dirt_with_grass"},
|
||||||
neighbors = {"default:water_source", "default:water_flowing"},
|
neighbors = {"default:water_source", "default:water_flowing"},
|
||||||
interval = 10.0, -- Run every 10 seconds
|
interval = 10.0, -- Run every 10 seconds
|
||||||
chance = 50, -- Select every 1 in 50 nodes
|
chance = 50, -- One node has a chance of 1 in 50 to get selected
|
||||||
action = function(pos, node, active_object_count,
|
action = function(pos, node, active_object_count,
|
||||||
active_object_count_wider)
|
active_object_count_wider)
|
||||||
local pos = {x = pos.x, y = pos.y + 1, z = pos.z}
|
local pos = {x = pos.x, y = pos.y + 1, z = pos.z}
|
||||||
|
@ -194,7 +194,7 @@ out the tool, remove the node, and run the `after_dig_node` callback.
|
|||||||
minetest.register_node("mymod:mynode", {
|
minetest.register_node("mymod:mynode", {
|
||||||
on_punch = function(pos, node, puncher, pointed_thing)
|
on_punch = function(pos, node, puncher, pointed_thing)
|
||||||
if puncher:is_player() then
|
if puncher:is_player() then
|
||||||
minetest.chat_send_player(clicker:get_player_name(), "Ow!")
|
minetest.chat_send_player(puncher:get_player_name(), "Ow!")
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user