From 3e6ec9cf1015798657315d9919384e0dcebf2777 Mon Sep 17 00:00:00 2001 From: the-real-herowl Date: Thu, 30 May 2024 11:17:19 +0000 Subject: [PATCH] Fixed eye of ender crash (#4344) This makes sure every loaded eye of ender gets its `_luck` parameter set. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4344 --- mods/ITEMS/mcl_end/eye_of_ender.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/mcl_end/eye_of_ender.lua b/mods/ITEMS/mcl_end/eye_of_ender.lua index 065d7657e..788107601 100644 --- a/mods/ITEMS/mcl_end/eye_of_ender.lua +++ b/mods/ITEMS/mcl_end/eye_of_ender.lua @@ -22,6 +22,7 @@ minetest.register_entity("mcl_end:ender_eye", { self._phase = 0 end end + if not self._luck then self._luck = 0 end end, on_step = function(self, dtime)