forked from mtcontrib/minetest-mod-snow
…
M src/snowball.lua
This commit is contained in:
parent
2df09a7ebb
commit
fd111402d5
@ -173,8 +173,10 @@ function snow_snowball_ENTITY.on_step(self, dtime)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
for _,v in pairs(minetest.get_objects_inside_radius(pos, 1.73)) do
|
for _,v in pairs(minetest.get_objects_inside_radius(pos, 1.73)) do
|
||||||
if v ~= self.object then
|
local entity = v:get_luaentity()
|
||||||
local entity_name = v:get_luaentity().name
|
if v ~= self.object
|
||||||
|
and entity then
|
||||||
|
local entity_name = entity.name
|
||||||
if v:is_player()
|
if v:is_player()
|
||||||
or (entity_name ~= "snow:snowball_entity"
|
or (entity_name ~= "snow:snowball_entity"
|
||||||
and entity_name ~= "__builtin:item"
|
and entity_name ~= "__builtin:item"
|
||||||
|
Loading…
Reference in New Issue
Block a user