diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-15 11:15:36 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-15 11:15:36 +0100 |
commit | 3d5c4d59d61c099cfc74cf04c0a875158bfec895 (patch) | |
tree | 30ea6dbb363668b3d0186d141dbbb950d08ea776 /src/main/java/at/hannibal2 | |
parent | d10a09fa651aa9da8b842a21f0b25fc27594c1b2 (diff) | |
download | skyhanni-3d5c4d59d61c099cfc74cf04c0a875158bfec895.tar.gz skyhanni-3d5c4d59d61c099cfc74cf04c0a875158bfec895.tar.bz2 skyhanni-3d5c4d59d61c099cfc74cf04c0a875158bfec895.zip |
better logic
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenPlotBorders.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenPlotBorders.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenPlotBorders.kt index e3f0c1386..d5d00d509 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenPlotBorders.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenPlotBorders.kt @@ -31,13 +31,13 @@ class GardenPlotBorders { if (timeLastSaved.passedSince() < 250.milliseconds) return if (event.keyCode == Keyboard.KEY_G && Keyboard.isKeyDown(Keyboard.KEY_F3)) { + timeLastSaved = SimpleTimeMark.now() showBorders = !showBorders } if (event.keyCode == Keyboard.KEY_F3 && Keyboard.isKeyDown(Keyboard.KEY_G)) { + timeLastSaved = SimpleTimeMark.now() showBorders = !showBorders } - - timeLastSaved = SimpleTimeMark.now() } @SubscribeEvent |