1
0
Fork 0
MineClone2/mods
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
..
CORE mcl_explosions 2022-03-08 23:16:53 +01:00
ENTITIES mcl_mobs 2022-03-08 23:16:54 +01:00
ENVIRONMENT mcl_weather 2022-03-08 23:16:54 +01:00
HELP add translate for `doc_identifier` 2022-03-08 23:16:53 +01:00
HUD mcl_inventory 2022-03-08 23:16:54 +01:00
ITEMS Fix redstone comparator flooding crash 2022-03-08 23:16:54 +01:00
MAPGEN mcl_structures 2022-03-08 23:16:54 +01:00
MISC mcl_commands 2022-03-08 23:16:54 +01:00
PLAYER mcl_skins 2022-03-08 23:16:54 +01:00