mirror of
https://github.com/pandorabox-io/spacecannon.git
synced 2024-12-21 05:15:47 +01:00
fix: style
This commit is contained in:
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, {
|
||||||
|
Loading…
Reference in New Issue
Block a user