mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue