mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-02-24 06:50:46 +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");
|
position = nbt.getBoolean("pos");
|
||||||
remaining = nbt.getByte("count");
|
remaining = nbt.getByte("count");
|
||||||
|
|
||||||
leftRatio = nbt.getByte("left");
|
// Make sure existing conveyors are initialised with ratios
|
||||||
rightRatio = nbt.getByte("right");
|
leftRatio = (byte)Math.max(nbt.getByte("left"), 1);
|
||||||
|
rightRatio = (byte)Math.max(nbt.getByte("right"), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user