From f8e6b60de57577321fb37ff185f70f5d47708447 Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Thu, 2 Mar 2023 14:30:19 -0500 Subject: [PATCH] Prevent crash when missing metadata in cluster arrow --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index fcbfcfa..e051aee 100644 --- a/api.lua +++ b/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()