master #1

Merged
balazsszalab merged 73 commits from MineClone5/MineClone5:master into master 2022-06-18 17:29:28 +02:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit 6df9027971 - Show all commits

View File

@ -86,7 +86,10 @@ minetest.register_entity("extra_mobs:glow_item_frame_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