aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/api/graphs/paths/PowerNodePath.java')
-rw-r--r--src/main/java/gregtech/api/graphs/paths/PowerNodePath.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java b/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java
index 1601d3b28d..7d9a76524e 100644
--- a/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java
+++ b/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java
@@ -27,7 +27,8 @@ public class PowerNodePath extends NodePath {
}
public void applyVoltage(long aVoltage, boolean aCountUp) {
- int tNewTime = MinecraftServer.getServer().getTickCounter();
+ int tNewTime = MinecraftServer.getServer()
+ .getTickCounter();
if (mTick != tNewTime) {
reset(tNewTime - mTick);
mTick = tNewTime;
@@ -76,7 +77,9 @@ public class PowerNodePath extends NodePath {
// if no amps pass through for more than 0.5 second reduce them to minimize wrong results
// but still allow the player to see if activity is happening
public long getAmps() {
- int tTime = MinecraftServer.getServer().getTickCounter() - 10;
+ int tTime = MinecraftServer.getServer()
+ .getTickCounter()
+ - 10;
if (mTick < tTime) {
reset(tTime - mTick);
mTick = tTime;