mirror of
https://github.com/Splizard/minetest-mod-snow.git
synced 2024-12-27 15:10:20 +01:00
…
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
|
||||
end
|
||||
for _,v in pairs(minetest.get_objects_inside_radius(pos, 1.73)) do
|
||||
if v ~= self.object then
|
||||
local entity_name = v:get_luaentity().name
|
||||
local entity = v:get_luaentity()
|
||||
if v ~= self.object
|
||||
and entity then
|
||||
local entity_name = entity.name
|
||||
if v:is_player()
|
||||
or (entity_name ~= "snow:snowball_entity"
|
||||
and entity_name ~= "__builtin:item"
|
||||
|
Loading…
Reference in New Issue
Block a user