Mineclonia/mods
Nils Dagsson Moskopp be915478af
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-02-23 00:27:56 +01:00
..
CORE Fix typo in mcl_colors API documentation 2021-11-18 19:23:57 +01:00
ENTITIES Fix mob-in-boat crash in Minetest 5.5-dev 2022-01-26 18:25:08 +01:00
ENVIRONMENT Move data from deprecated files to mod.conf 2021-05-16 13:44:04 +02:00
HELP Move data from deprecated files to mod.conf 2021-05-16 13:44:04 +02:00
HUD Increase temporary message display duration to 10s 2022-02-12 17:25:09 +01:00
ITEMS Fix redstone comparator flooding crash 2022-02-23 00:27:56 +01:00
MAPGEN Add comparator test structure 2022-02-22 23:48:10 +01:00
MISC Do not crash if minetest.find_nodes_in_area() lies 2021-12-20 21:38:24 +01:00
PLAYER Fix player bone positions and properties setting 2021-12-09 04:53:45 +01:00