Fix ClientTickEvent not firing properly.

This commit is contained in:
LexManos committed 2024-06-13 17:13:15 -07:00
1 parent 583f363b6b
commit 4209d1fc12
2 files changed
+4 -16

No files matched your search

@@ -816,11 +816,11 @@ public final class ForgeEventFactory {
}
public static void onPreClientTick() {
post(TickEvent.ClientTickEvent.Pre.get());
post(new TickEvent.ClientTickEvent.Pre());
}
public static void onPostClientTick() {
post(TickEvent.ClientTickEvent.Post.get());
post(new TickEvent.ClientTickEvent.Post());
}
public static void onPreServerTick(BooleanSupplier haveTime, MinecraftServer server) {
@@ -80,27 +80,15 @@ public class TickEvent extends Event {
}
public static class Pre extends ClientTickEvent {
private static final Pre INSTANCE = new Pre();
private Pre() {
public Pre() {
super(Phase.START);
}
public static Pre get() {
return INSTANCE;
}
}
public static class Post extends ClientTickEvent {
private static final Post INSTANCE = new Post();
private Post() {
public Post() {
super(Phase.END);
}
public static Post get() {
return INSTANCE;
}
}
}