From 5f50e4a36ec000657b0a1664784acf00275293c6 Mon Sep 17 00:00:00 2001 From: boubou19 Date: Sat, 1 Apr 2023 18:11:43 +0200 Subject: update spotless formatting (#1827) --- src/main/java/gregtech/api/graphs/paths/PowerNodePath.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main/java/gregtech/api/graphs/paths') 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; -- cgit