mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-03-13 16:10:25 +01:00
[snow] Attempt to fix crash
This commit is contained in:
parent
ee352dbc60
commit
3617679dfb
@ -126,7 +126,7 @@ function snow_snowball_ENTITY.on_step(self, dtime)
|
||||
and entity_name ~= "__builtin:item"
|
||||
and entity_name ~= "gauges:hp_bar" then
|
||||
local puncher = self.object
|
||||
if self.thrower and self.thrower ~= "" and minetest.get_player_by_name(self.thrower) then
|
||||
if minetest.get_player_by_name(self.thrower or "") then
|
||||
puncher = minetest.get_player_by_name(self.thrower)
|
||||
end
|
||||
v:punch(puncher, 1.0, {full_punch_interval=1.0, damage_groups = {fleshy=1} })
|
||||
|
Loading…
x
Reference in New Issue
Block a user