1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-27 23:10:33 +02:00

[snow] Attempt to fix crash

This commit is contained in:
LeMagnesium 2016-01-01 16:39:34 +01:00
parent ee352dbc60
commit 3617679dfb

View File

@ -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} })