Commit Graph

7374 Commits

Author SHA1 Message Date
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 86cf8010af add `.blend2` and `.blend3` files to gitignore 2022-03-08 23:16:54 +01:00
AFCMS b9eb00613c add `.blend1` files to gitignore 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 83b7f03f0d mcl_commands 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 5ba99c8a19 mcl_inventory 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 968385acd8 mcl_skins 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 7a431037e0 mcl_mobs 2022-03-08 23:16:54 +01:00
1F616EMO 6c9fab1e82 findbiome 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 9035e1292f mcl_hunger 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 6ec838c05d mcl_weather 2022-03-08 23:16:54 +01:00
1F616EMO f48e2c691b mcl_structures 2022-03-08 23:16:54 +01:00
1F616EMO c6bbfbe49f mcl_experience 2022-03-08 23:16:54 +01:00
1F616EMO 1dcac179e5 mcl_cocoas 2022-03-08 23:16:54 +01:00
1F616EMO 9d5465a2d2 hudbars 2022-03-08 23:16:54 +01:00
1F616EMO c5f6068a9d mclx_core 2022-03-08 23:16:54 +01:00
1F616EMO 8257e539c4 mcl_paintings 2022-03-08 23:16:54 +01:00
1F616EMO 3e25d63881 mcl_mobspawners 2022-03-08 23:16:54 +01:00