mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix ClientTickEvent not firing properly.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user