diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-03 14:42:49 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-03 14:42:49 +0700 |
commit | e5ef86b9b3fd0f5e687416acc667f368444e4459 (patch) | |
tree | 8aebde9eebf5e4fdc633f607b59dda84ad312969 /src/main/java/io/polyfrost/oneconfig/utils | |
parent | 28227742d7ec116cf616fde0689ffdc8062a9f68 (diff) | |
download | OneConfig-e5ef86b9b3fd0f5e687416acc667f368444e4459.tar.gz OneConfig-e5ef86b9b3fd0f5e687416acc667f368444e4459.tar.bz2 OneConfig-e5ef86b9b3fd0f5e687416acc667f368444e4459.zip |
stolen blur
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/utils')
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/utils/TickDelay.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/utils/TickDelay.java b/src/main/java/io/polyfrost/oneconfig/utils/TickDelay.java index b28a20a..0babff1 100644 --- a/src/main/java/io/polyfrost/oneconfig/utils/TickDelay.java +++ b/src/main/java/io/polyfrost/oneconfig/utils/TickDelay.java @@ -1,13 +1,12 @@ package io.polyfrost.oneconfig.utils; import net.minecraftforge.common.MinecraftForge; -import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; public class TickDelay { - int delay; - Runnable function; + private int delay; + private final Runnable function; public TickDelay(Runnable functionName, int ticks) { register(); @@ -27,12 +26,10 @@ public class TickDelay { } } - @EventHandler() private void destroy() { MinecraftForge.EVENT_BUS.unregister(this); } - @EventHandler() private void register() { MinecraftForge.EVENT_BUS.register(this); } |