aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/graphs/paths
diff options
context:
space:
mode:
authorRaven Szewczyk <git@eigenraven.me>2023-04-10 17:49:16 +0100
committerRaven Szewczyk <git@eigenraven.me>2023-04-10 17:49:16 +0100
commit8ac58626bd4caa9e49f58acc6b97ac031f6c2107 (patch)
tree0a8c7b737f1f2607fa6875309f4c6a5c2b8b3331 /src/main/java/gregtech/api/graphs/paths
parentd795cf740c3b48b602d3bfb708ed9e6c492ad37d (diff)
downloadGT5-Unofficial-8ac58626bd4caa9e49f58acc6b97ac031f6c2107.tar.gz
GT5-Unofficial-8ac58626bd4caa9e49f58acc6b97ac031f6c2107.tar.bz2
GT5-Unofficial-8ac58626bd4caa9e49f58acc6b97ac031f6c2107.zip
Update spotless config to 0.2.2
Diffstat (limited to 'src/main/java/gregtech/api/graphs/paths')
-rw-r--r--src/main/java/gregtech/api/graphs/paths/PowerNodePath.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java b/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java
index 97edd5757c..a232822b26 100644
--- a/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java
+++ b/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java
@@ -28,7 +28,7 @@ public class PowerNodePath extends NodePath {
public void applyVoltage(long aVoltage, boolean aCountUp) {
int tNewTime = MinecraftServer.getServer()
- .getTickCounter();
+ .getTickCounter();
if (mTick != tNewTime) {
reset(tNewTime - mTick);
mTick = tNewTime;
@@ -78,8 +78,7 @@ public class PowerNodePath extends NodePath {
// but still allow the player to see if activity is happening
public long getAmps() {
int tTime = MinecraftServer.getServer()
- .getTickCounter()
- - 10;
+ .getTickCounter() - 10;
if (mTick < tTime) {
reset(tTime - mTick);
mTick = tTime;