fix: style

This commit is contained in:
Kiëd Llaentenn 2023-06-01 07:21:30 -04:00
parent aa66ddc5cf
commit aa46ca3614

@ -67,10 +67,10 @@ local register_spacecannon = function(def)
local objs = minetest.get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 1) local objs = minetest.get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 1)
local collided = false local collided = false
for _, obj in pairs(objs) do for _, obj in pairs(objs) do
if spacecannon.can_damage(obj) and (obj:is_player() or if (obj:is_player() or (obj:get_luaentity() ~= nil
(obj:get_luaentity() ~= nil
and obj:get_luaentity().name ~= self.name and obj:get_luaentity().name ~= self.name
and obj:get_luaentity().name ~= "__builtin:item")) and obj:get_luaentity().name ~= "__builtin:item"))
and spacecannon.can_damage(obj)
then then
collided = true collided = true
obj:punch(self.object, 1.0, { obj:punch(self.object, 1.0, {