Mess around with electricity a bit
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
Reference in New Issue
Block a user