mirror of
https://github.com/minetest-mods/lightning.git
synced 2025-01-10 01:40:20 +01:00
Update init.lua
This commit is contained in:
parent
2e52762f23
commit
2f97e91326
2
init.lua
2
init.lua
@ -125,7 +125,7 @@ lightning.strike = function(pos)
|
|||||||
-- damage nearby objects, player or not
|
-- damage nearby objects, player or not
|
||||||
for _, obj in ipairs(minetest.get_objects_inside_radius(pos, 5)) do
|
for _, obj in ipairs(minetest.get_objects_inside_radius(pos, 5)) do
|
||||||
-- nil as param#1 is supposed to work, but core can't handle it.
|
-- nil as param#1 is supposed to work, but core can't handle it.
|
||||||
obj:punch(obj, 1.0, {full_punch_interval = 1.0, damage_groups = {fleshy=8}}, nil)
|
obj:punch(obj, 1.0, {full_punch_interval = 1.0, damage_groups = {fleshy=8}}, nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
local playerlist = minetest.get_connected_players()
|
local playerlist = minetest.get_connected_players()
|
||||||
|
Loading…
Reference in New Issue
Block a user