Prevent crash when missing metadata in cluster arrow
This commit is contained in:
parent
574d091361
commit
f8e6b60de5
2
api.lua
2
api.lua
|
@ -932,7 +932,7 @@ function XBowsEntityDef.on_activate(self, selfObj, staticdata, dtime_s)
|
|||
local bow_strength_max = x_bows_registered_bow_def.custom.strength_max
|
||||
|
||||
---X Enchanting
|
||||
selfObj._x_enchanting = _staticdata._x_enchanting
|
||||
selfObj._x_enchanting = _staticdata._x_enchanting or {}
|
||||
|
||||
---acceleration
|
||||
selfObj._player_look_dir = selfObj._user:get_look_dir()
|
||||
|
|
Ŝarĝante…
Reference in New Issue