aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java
diff options
context:
space:
mode:
authorboubou19 <miisterunknown@gmail.com>2023-04-01 18:11:43 +0200
committerGitHub <noreply@github.com>2023-04-01 18:11:43 +0200
commit5f50e4a36ec000657b0a1664784acf00275293c6 (patch)
tree5ef81441032735438c9fd9c620224ca58e46e537 /src/main/java/gregtech/api/graphs/paths/PowerNodePath.java
parent6b77557e0e87cf5afd9ebd3985323ff1249e615c (diff)
downloadGT5-Unofficial-5f50e4a36ec000657b0a1664784acf00275293c6.tar.gz
GT5-Unofficial-5f50e4a36ec000657b0a1664784acf00275293c6.tar.bz2
GT5-Unofficial-5f50e4a36ec000657b0a1664784acf00275293c6.zip
update spotless formatting (#1827)
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;