Mess around with electricity a bit

This commit is contained in:
IamPyu
2024-10-02 17:04:00 -06:00
parent 0e87b2c9a2
commit b2e0b10214
6 changed files with 31 additions and 30 deletions

View File

@@ -93,12 +93,12 @@ PyuTest.make_node("pyutest_blocks:tnt", "TNT", {
end)
end,
__on_electricity_activated = function(pos, node, clicker, sender_pos)
__on_electricity_activated = function(pos, node, sender_pos)
minetest.after(3, function()
if minetest.get_node(pos).name ~= "pyutest_blocks:tnt" then
return
end
PyuTest.create_explosion(pos, 3, true, 7, clicker, true)
PyuTest.create_explosion(pos, 3, true, 7)
end)
end,
})