mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-25 06:27:41 +01:00
Merge branch 'mc1.14-v0.2.2b' into mc1.14-v0.2.3
This commit is contained in:
commit
83cfc097ae
1 changed files with 6 additions and 0 deletions
|
@ -50,6 +50,8 @@ public class SequencedGearshiftTileEntity extends SplitShaftTileEntity {
|
||||||
Instruction instruction = getInstruction(currentInstruction);
|
Instruction instruction = getInstruction(currentInstruction);
|
||||||
if (instruction == null)
|
if (instruction == null)
|
||||||
return;
|
return;
|
||||||
|
if (getSpeed() == 0)
|
||||||
|
run(-1);
|
||||||
|
|
||||||
// Update instruction time with regards to new speed
|
// Update instruction time with regards to new speed
|
||||||
float initialProgress = timer / (float) currentInstructionDuration;
|
float initialProgress = timer / (float) currentInstructionDuration;
|
||||||
|
@ -68,6 +70,8 @@ public class SequencedGearshiftTileEntity extends SplitShaftTileEntity {
|
||||||
world.setBlockState(pos, getBlockState().with(SequencedGearshiftBlock.STATE, 0), 3);
|
world.setBlockState(pos, getBlockState().with(SequencedGearshiftBlock.STATE, 0), 3);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (getSpeed() == 0)
|
||||||
|
return;
|
||||||
run(0);
|
run(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,6 +126,8 @@ public class SequencedGearshiftTileEntity extends SplitShaftTileEntity {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getModifier() {
|
public int getModifier() {
|
||||||
|
if (currentInstruction >= instructions.size())
|
||||||
|
return 0;
|
||||||
return isIdle() ? 0 : instructions.get(currentInstruction).getSpeedModifier();
|
return isIdle() ? 0 : instructions.get(currentInstruction).getSpeedModifier();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue