From 0a14a748609678e8478296af54df934d7c344685 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Fri, 24 May 2024 10:32:19 +0000 Subject: [PATCH] Fix crash when converting endermen to rovers (#4318) Fixes a crash that occurs when automatically converting endermen to rovers. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4318 Reviewed-by: the-real-herowl Co-authored-by: teknomunk Co-committed-by: teknomunk --- mods/ENTITIES/mobs_mc/rover.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mobs_mc/rover.lua b/mods/ENTITIES/mobs_mc/rover.lua index 272c22617..68d13669d 100644 --- a/mods/ENTITIES/mobs_mc/rover.lua +++ b/mods/ENTITIES/mobs_mc/rover.lua @@ -496,7 +496,7 @@ mcl_mobs.register_mob("mobs_mc:rover", { -- compat minetest.register_entity("mobs_mc:enderman", { on_activate = function(self, staticdata, dtime) - minetest.add_entity(self.object:get_pos(), "mobs_mc:rover", staticdata) + local obj = minetest.add_entity(self.object:get_pos(), "mobs_mc:rover", staticdata) obj:set_properties({ mesh = "vl_rover.b3d", textures = { "vl_mobs_rover.png^vl_mobs_rover_face.png" },