Atteempt to fix map on itemframe by using EliasFlickenstein in mcl2

This commit is contained in:
3raven 2022-05-30 14:02:06 +00:00
parent 8d79e5f7f7
commit 50cbde6380
1 changed files with 4 additions and 1 deletions

View File

@ -65,7 +65,10 @@ minetest.register_entity("mcl_itemframes:map", {
},
on_activate = function(self, staticdata)
self.id = staticdata
self.object:set_properties({textures = {mcl_maps.load_map(self.id)}})
mcl_maps.load_map(self.id, function(texture)
-- will not crash even if self.object is invalid by now
self.object:set_properties({textures = {texture}})
end)
end,
get_staticdata = function(self)
return self.id