1
0
Fork 0
MineClone2/mods/ITEMS
Nils Dagsson Moskopp 41550da87b 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-24 15:52:01 +01:00
..
REDSTONE Fix redstone comparator flooding crash 2022-02-24 15:52:01 +01:00
mcl_anvils mcl_anvils 2022-02-23 23:58:05 +01:00
mcl_armor remove blender backup file 2022-02-24 10:16:47 +01:00
mcl_armor_stand mcl_armor_stand 2022-02-23 23:58:05 +01:00
mcl_banners Use enchanted golden apple for thing banner 2021-10-26 16:50:10 +00:00
mcl_barrels Revert "move barrels to mcl_chests" 2022-02-22 20:20:21 +01:00
mcl_beds add zh_TW translate to `mcl_beds` and `mcl_core` 2022-02-23 23:58:04 +01:00
mcl_books mcl_books 2022-02-23 23:58:05 +01:00
mcl_bows mcl_bows 2022-02-23 23:58:05 +01:00
mcl_brewing mcl_brewing 2022-02-23 23:58:05 +01:00
mcl_buckets mcl_buckets 2022-02-23 23:58:05 +01:00
mcl_cake mcl_cake 2022-02-23 23:58:05 +01:00
mcl_cauldrons mcl_cauldrons 2022-02-23 23:58:05 +01:00
mcl_chests Revert "move barrels to mcl_chests" 2022-02-22 20:20:21 +01:00
mcl_clock mcl_clock 2022-02-23 23:58:05 +01:00
mcl_cocoas mcl_cocoas 2022-02-23 23:58:05 +01:00
mcl_colorblocks Merge branch 'master' into polish-translation 2021-06-02 10:14:25 +00:00
mcl_compass mcl_compass 2022-02-23 23:58:05 +01:00
mcl_composters Optimize texture files. 2022-02-19 21:18:01 +01:00
mcl_core add zh_TW translate to `mcl_beds` and `mcl_core` 2022-02-23 23:58:04 +01:00
mcl_crafting_table mcl_crafting_table 2022-02-23 23:58:05 +01:00
mcl_doors mcl_doors 2022-02-23 23:58:05 +01:00
mcl_dye mcl_dye 2022-02-23 23:58:05 +01:00
mcl_enchanting Update groupcaps_hash function to minetest.sha1 2022-02-12 20:08:03 +01:00
mcl_end Fix warning in `mcl_end` 2021-07-10 10:16:55 +08:00
mcl_farming mcl_farming 2022-02-23 23:58:05 +01:00
mcl_fences mcl_fences 2022-02-23 23:58:05 +01:00
mcl_fire mcl_fire 2022-02-23 23:58:05 +01:00
mcl_fireworks Update French translation (part 1) 2021-08-13 11:35:18 +02:00
mcl_fishing mcl_fishing 2022-02-23 23:58:05 +01:00
mcl_flowerpots mcl_flowerpots 2022-02-23 23:58:05 +01:00
mcl_flowers mcl_flowers 2022-02-23 23:58:05 +01:00
mcl_furnaces mcl_furnaces 2022-02-23 23:58:05 +01:00
mcl_heads mcl_heads 2022-02-23 23:58:05 +01:00
mcl_hoppers Fix hopper breakage in get_item_group return value. 2022-02-24 03:18:25 +01:00
mcl_itemframes mcl_itemframes 2022-02-23 23:58:05 +01:00
mcl_jukebox mcl_jukebox 2022-02-23 23:58:05 +01:00
mcl_lanterns allow placement of lanterns on chains 2022-02-10 11:45:08 +01:00
mcl_maps mcl_maps 2022-02-23 23:58:05 +01:00
mcl_mobitems Merge pull request 'Fix French translations: granit + porc' (#1815) from pitchum/MineClone2:master into master 2021-06-14 17:51:29 +00:00
mcl_mobspawners mcl_mobspawners 2022-02-23 23:58:05 +01:00
mcl_monster_eggs mcl_monster_eggs 2022-02-23 23:58:05 +01:00
mcl_mushrooms mcl_mushrooms 2022-02-23 23:58:05 +01:00
mcl_nether Update polish translation of several files 2021-06-02 13:21:19 +02:00
mcl_ocean Merge branch 'master' into polish-translation 2021-06-02 10:14:25 +00:00
mcl_portals mcl_portals 2022-02-23 23:58:05 +01:00
mcl_potions Add crossbows 2021-10-15 12:00:37 -07:00
mcl_signs mcl_signs 2022-02-23 23:58:05 +01:00
mcl_sponges mcl_sponges 2022-02-23 23:58:05 +01:00
mcl_stairs Merge pull request 'Fix French translations: granit + porc' (#1815) from pitchum/MineClone2:master into master 2021-06-14 17:51:29 +00:00
mcl_throwing mcl_throwing 2022-02-23 23:58:05 +01:00
mcl_tnt mcl_tnt 2022-02-23 23:58:05 +01:00
mcl_tools mcl_tools 2022-02-23 23:58:05 +01:00
mcl_torches mcl_torches 2022-02-23 23:58:05 +01:00
mcl_totems Use math.floor instead of math.round 2021-10-25 20:25:34 +00:00
mcl_walls mcl_walls 2022-02-23 23:58:05 +01:00
mcl_wool Merge branch 'master' into polish-translation 2021-06-02 10:14:25 +00:00
mclx_core mclx_core 2022-02-23 23:58:05 +01:00
mclx_fences mclx_fences 2022-02-23 23:58:05 +01:00
mclx_stairs Merge branch 'master' into polish-translation 2021-06-02 10:14:25 +00:00
screwdriver screwdriver 2022-02-23 23:58:05 +01:00
xpanes xpanes 2022-02-23 23:58:05 +01:00
modpack.conf Add a couple of modpack.conf files 2019-01-07 00:52:05 +01:00