Mineclonia/mods
Nils Dagsson Moskopp 9541e401de
Fix handheld maps not displaying in Minetest 5.5.0
The function dynamic_add_media() was changed in incompatible ways in
several minor versions of Minetest, breaking the display of handheld
maps in Minetest 5.5.0. This patch makes handheld maps display there.

The function was blocking with one argument in Minetest 5.3. It was also
blocking in Minetest 5.4, but took an additional argument for a function
to execute once the media had been received. Calling dynamic_add_media()
with a single argument had been deprecated; a function that did nothing
was provided in mcl_maps to satisfy the changed argument requirements.

In Minetest 5.5, dynamic_add_media() was changed to non-blocking. This
introduced a race condition in mcl_maps, where a client often tried to
display a map before it had received the map texture from the server.

Opening an issue on the Minetest issue tracker led to it being closed in
about 20 minutes: <https://github.com/minetest/minetest/issues/11997>
2022-02-25 23:11:34 +01:00
..
CORE Use raw packets in RLE compression in tga_encoder 2022-02-20 10:15:06 +01:00
ENTITIES Make it look like the player is holding the map in their hand 2022-02-20 10:12:34 +01:00
ENVIRONMENT Move data from deprecated files to mod.conf 2021-05-16 13:44:04 +02:00
HELP Add Real Maps 2022-02-20 10:12:27 +01:00
HUD Fix creative mode inventory search crash 2022-01-21 23:31:25 +01:00
ITEMS Fix handheld maps not displaying in Minetest 5.5.0 2022-02-25 23:11:34 +01:00
MAPGEN Add (theoretically) fireproof test structure 2022-02-06 01:19:23 +01:00
MISC Do not crash if minetest.find_nodes_in_area() lies 2021-12-20 21:38:24 +01:00
PLAYER Make it look like the player is holding the map in their hand 2022-02-20 10:12:34 +01:00