Stop funnelling around

- Fixed filters with an unset (*) extraction amount not migrating correctly from 0.5 worlds
- Move more recent version of palettes reference to `assets\create\reference`
This commit is contained in:
simibubi 2023-05-14 00:23:46 +02:00
parent 3d3ef68900
commit 03feeb71ef
3 changed files with 7 additions and 0 deletions

View file

@ -96,6 +96,13 @@ public class FilteringBehaviour extends BlockEntityBehaviour implements ValueSet
filter = ItemStack.of(nbt.getCompound("Filter"));
count = nbt.getInt("FilterAmount");
upTo = nbt.getBoolean("UpTo");
// Migrate from previous behaviour
if (count == 0) {
upTo = true;
count = filter.getMaxStackSize();
}
super.read(nbt, clientPacket);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 23 KiB