Fix ClientTickEvent not firing properly.

This commit is contained in:
LexManos committed 2024-06-13 17:11:04 -07:00
1 parent 8f17370cb7
commit 5eb5c34636
2 files changed
+4 -18

No files matched your search

@@ -823,11 +823,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) {
@@ -86,29 +86,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;
}
}
}