Commit Graph

3524 Commits

Author SHA1 Message Date
MysticTempest d2e635b13f Rename a few textures to help support texture packs. 2022-03-08 23:19:18 +01:00
Elias Åström 00cb4f6233 Rewrite portal removal to avoid stack overflow
This solves a problem were nether portal removal would trigger deep
recursion through node callbacks.  For large portals this could result
in stack overflow crashes on LuaJIT.  The issue is solved by rewriting
the portal removal to avoid recursion and removing the portal in one
operation using minetest.bulk_set_node.
2022-03-08 23:19:18 +01:00
AFCMS 1048b3a38f make all arrow types activate target (+ depends and code fixes) 2022-03-08 23:19:17 +01:00
AFCMS fb35af4dba make lingering potions activate target (+ indentation fix) 2022-03-08 23:19:17 +01:00
AFCMS 1a1c592452 make splash potions activate target 2022-03-08 23:19:17 +01:00
AFCMS 1cf53722a4 make ender pearls activate target 2022-03-08 23:16:54 +01:00
AFCMS bb1586ce72 make eggs activate target 2022-03-08 23:16:54 +01:00
AFCMS a848b9d158 add target help text 2022-03-08 23:16:54 +01:00
AFCMS 8f5bb24771 add target crafting receipe 2022-03-08 23:16:54 +01:00
AFCMS 25f9baff2c make snowballs activate target 2022-03-08 23:16:54 +01:00
AFCMS 01c9fc9652 add target with API 2022-03-08 23:16:54 +01:00
cora b35959e005 do not randomseed twice 2022-03-08 23:16:54 +01:00
cora 56ec2b8066 fix beds dropping when burning up 2022-03-08 23:16:54 +01:00
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
1F616EMO de929349b9 mcl_tools 2022-03-08 23:16:54 +01:00
1F616EMO 2bd8f5bdb7 mcl_flowers 2022-03-08 23:16:54 +01:00
1F616EMO f51e01ae80 mcl_books 2022-03-08 23:16:54 +01:00
1F616EMO 5b75bf74fc mcl_dye 2022-03-08 23:16:54 +01:00
1F616EMO 6fd55fb10c mcl_flowerpots 2022-03-08 23:16:54 +01:00
1F616EMO ec9db5830a mcl_mushrooms 2022-03-08 23:16:54 +01:00
1F616EMO fa8d9e2dc0 mcl_doors 2022-03-08 23:16:54 +01:00
1F616EMO fd00164bde xpanes 2022-03-08 23:16:54 +01:00
1F616EMO 87dba5f3fb mcl_armor 2022-03-08 23:16:54 +01:00
1F616EMO 6094f115dc mcl_fire 2022-03-08 23:16:54 +01:00
1F616EMO 5cf10b28e9 mcl_fishing 2022-03-08 23:16:54 +01:00
1F616EMO 23f6cdb492 mcl_fences 2022-03-08 23:16:54 +01:00
1F616EMO 7358ef40cc mcl_buckets 2022-03-08 23:16:54 +01:00
1F616EMO 574ca21018 mcl_walls 2022-03-08 23:16:54 +01:00
1F616EMO 2358a8be4f mcl_hoppers 2022-03-08 23:16:54 +01:00
1F616EMO 7e94436cfb mcl_anvils 2022-03-08 23:16:54 +01:00
1F616EMO 2932209f60 mcl_portals 2022-03-08 23:16:54 +01:00
1F616EMO 15a4a1f31f mcl_bows 2022-03-08 23:16:54 +01:00
1F616EMO 188dbfc6b9 mcl_throwing 2022-03-08 23:16:54 +01:00
1F616EMO 3efeaf0fe2 mcl_cake 2022-03-08 23:16:54 +01:00
1F616EMO c69cbe85fe mcl_jukebox 2022-03-08 23:16:54 +01:00
1F616EMO fe309e802d mcl_heads 2022-03-08 23:16:54 +01:00
1F616EMO 10b0a86c8e mcl_cauldrons 2022-03-08 23:16:54 +01:00
1F616EMO bcfddc1b78 mcl_sponges 2022-03-08 23:16:54 +01:00
1F616EMO d1d81d9cc7 mcl_maps 2022-03-08 23:16:54 +01:00
1F616EMO 62e32d6fb2 mcl_brewing 2022-03-08 23:16:54 +01:00
1F616EMO a1213f2465 mcl_signs 2022-03-08 23:16:54 +01:00
1F616EMO f55e1f5a7d mcl_monster_eggs 2022-03-08 23:16:54 +01:00
1F616EMO 8d220039b0 mcl_furnaces 2022-03-08 23:16:54 +01:00
1F616EMO 50f9291469 mcl_tnt 2022-03-08 23:16:54 +01:00
1F616EMO 7681ca8122 mcl_crafting_table 2022-03-08 23:16:54 +01:00
1F616EMO 1dcac179e5 mcl_cocoas 2022-03-08 23:16:54 +01:00