mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-08-19 21:44:12 +02:00
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 <the-real-herowl@noreply.git.minetest.land> Co-authored-by: teknomunk <teknomunk@protonmail.com> Co-committed-by: teknomunk <teknomunk@protonmail.com>
This commit is contained in:
parent
cb4396d424
commit
0a14a74860
@ -496,7 +496,7 @@ mcl_mobs.register_mob("mobs_mc:rover", {
|
|||||||
-- compat
|
-- compat
|
||||||
minetest.register_entity("mobs_mc:enderman", {
|
minetest.register_entity("mobs_mc:enderman", {
|
||||||
on_activate = function(self, staticdata, dtime)
|
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({
|
obj:set_properties({
|
||||||
mesh = "vl_rover.b3d",
|
mesh = "vl_rover.b3d",
|
||||||
textures = { "vl_mobs_rover.png^vl_mobs_rover_face.png" },
|
textures = { "vl_mobs_rover.png^vl_mobs_rover_face.png" },
|
||||||
|
Loading…
Reference in New Issue
Block a user