1
0
Fork 0
Commit Graph

6779 Commits (c0fdd121723475fdac82b6ecd38657ee28b4ae3c)

Author SHA1 Message Date
cora c0fdd12172 make fire use abms instead of laggy node timers 2022-03-08 23:16:54 +01:00
Nils Dagsson Moskopp 6e3f22c1ca 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-03-08 23:16:54 +01:00
Nils Dagsson Moskopp 3cfa41de6d Fix redstone comparator flooding crash
Redstone comparators have two modes, comparison mode & subtraction mode.
Before this patch, the functions to turn comparators on or off attempted
to swap nodes with comparators in the same mode, but failed to determine
the correct replacement node, if the existing node was not a comparator.

When a comparator in an on state (e.g. powered by a filled cauldron) was
flooded, the flooding dropped the comparator and replaced the comparator
node that was to be swapped out with air, which lead to a server crash.

This patch changes the functions that turn comparators on or off so they
only swap existing nodes with comparators in the same mode if the name
of the replacement node can be determined – i.e. if it is not nil.
2022-03-08 23:16:54 +01:00
AFCMS fe4f18705e remove blender backup file 2022-03-08 23:16:54 +01:00
kabou 178b929c6c Fix hopper breakage in get_item_group return value.
In commit 55009c257e that added vectors to
mcl_composters, mcl_hoppers was accidentally patched with a unrelated
change, updating it to get_item_group().  This mostly works, but in one
particular case the semantics of the return value differs.  Instead of
returning 'nil' it returns '0'.  That altered the evaluation of an if
condition, breaking the abm that sucks in items.

This commit fixes the conditional by explicitly comparing  '~= 0'.
2022-03-08 23:16:54 +01:00
Emojigit de929349b9 mcl_tools 2022-03-08 23:16:54 +01:00
Emojigit 2bd8f5bdb7 mcl_flowers 2022-03-08 23:16:54 +01:00
Emojigit f51e01ae80 mcl_books 2022-03-08 23:16:54 +01:00
Emojigit 5b75bf74fc mcl_dye 2022-03-08 23:16:54 +01:00
Emojigit 6fd55fb10c mcl_flowerpots 2022-03-08 23:16:54 +01:00
Emojigit ec9db5830a mcl_mushrooms 2022-03-08 23:16:54 +01:00
Emojigit fa8d9e2dc0 mcl_doors 2022-03-08 23:16:54 +01:00
Emojigit 83b7f03f0d mcl_commands 2022-03-08 23:16:54 +01:00
Emojigit fd00164bde xpanes 2022-03-08 23:16:54 +01:00
Emojigit 87dba5f3fb mcl_armor 2022-03-08 23:16:54 +01:00
Emojigit 5ba99c8a19 mcl_inventory 2022-03-08 23:16:54 +01:00
Emojigit 6094f115dc mcl_fire 2022-03-08 23:16:54 +01:00
Emojigit 5cf10b28e9 mcl_fishing 2022-03-08 23:16:54 +01:00
Emojigit 23f6cdb492 mcl_fences 2022-03-08 23:16:54 +01:00
Emojigit 7358ef40cc mcl_buckets 2022-03-08 23:16:54 +01:00
Emojigit 574ca21018 mcl_walls 2022-03-08 23:16:54 +01:00
Emojigit 2358a8be4f mcl_hoppers 2022-03-08 23:16:54 +01:00
Emojigit 7e94436cfb mcl_anvils 2022-03-08 23:16:54 +01:00
Emojigit 2932209f60 mcl_portals 2022-03-08 23:16:54 +01:00
Emojigit 15a4a1f31f mcl_bows 2022-03-08 23:16:54 +01:00
Emojigit 968385acd8 mcl_skins 2022-03-08 23:16:54 +01:00
Emojigit 188dbfc6b9 mcl_throwing 2022-03-08 23:16:54 +01:00
Emojigit 3efeaf0fe2 mcl_cake 2022-03-08 23:16:54 +01:00
Emojigit c69cbe85fe mcl_jukebox 2022-03-08 23:16:54 +01:00
Emojigit fe309e802d mcl_heads 2022-03-08 23:16:54 +01:00
Emojigit 10b0a86c8e mcl_cauldrons 2022-03-08 23:16:54 +01:00
Emojigit 7a431037e0 mcl_mobs 2022-03-08 23:16:54 +01:00
Emojigit 6c9fab1e82 findbiome 2022-03-08 23:16:54 +01:00
Emojigit bcfddc1b78 mcl_sponges 2022-03-08 23:16:54 +01:00
Emojigit d1d81d9cc7 mcl_maps 2022-03-08 23:16:54 +01:00
Emojigit 62e32d6fb2 mcl_brewing 2022-03-08 23:16:54 +01:00
Emojigit a1213f2465 mcl_signs 2022-03-08 23:16:54 +01:00
Emojigit f55e1f5a7d mcl_monster_eggs 2022-03-08 23:16:54 +01:00
Emojigit 8d220039b0 mcl_furnaces 2022-03-08 23:16:54 +01:00
Emojigit 9035e1292f mcl_hunger 2022-03-08 23:16:54 +01:00
Emojigit 50f9291469 mcl_tnt 2022-03-08 23:16:54 +01:00
Emojigit 7681ca8122 mcl_crafting_table 2022-03-08 23:16:54 +01:00
Emojigit 6ec838c05d mcl_weather 2022-03-08 23:16:54 +01:00
Emojigit f48e2c691b mcl_structures 2022-03-08 23:16:54 +01:00
Emojigit c6bbfbe49f mcl_experience 2022-03-08 23:16:54 +01:00
Emojigit 1dcac179e5 mcl_cocoas 2022-03-08 23:16:54 +01:00
Emojigit 9d5465a2d2 hudbars 2022-03-08 23:16:54 +01:00
Emojigit c5f6068a9d mclx_core 2022-03-08 23:16:54 +01:00
Emojigit 8257e539c4 mcl_paintings 2022-03-08 23:16:54 +01:00
Emojigit 3e25d63881 mcl_mobspawners 2022-03-08 23:16:54 +01:00