mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-14 11:13:49 +01:00
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:
parent
3d3ef68900
commit
03feeb71ef
3 changed files with 7 additions and 0 deletions
|
@ -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 |
Loading…
Reference in a new issue