mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
ensure pre-existing splitters initialise ratios
This commit is contained in:
parent
b4ae72513b
commit
5459920b9c
@ -57,8 +57,9 @@ public class TileEntityCraneSplitter extends TileEntityLoadedBase {
|
||||
position = nbt.getBoolean("pos");
|
||||
remaining = nbt.getByte("count");
|
||||
|
||||
leftRatio = nbt.getByte("left");
|
||||
rightRatio = nbt.getByte("right");
|
||||
// Make sure existing conveyors are initialised with ratios
|
||||
leftRatio = (byte)Math.max(nbt.getByte("left"), 1);
|
||||
rightRatio = (byte)Math.max(nbt.getByte("right"), 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user