diff options
author | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-06-09 12:34:08 +0100 |
---|---|---|
committer | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-06-09 12:34:08 +0100 |
commit | 3aa1e46c963a015906e72d7ae0b4f2ba6a0dbc58 (patch) | |
tree | 2076f0c00ca7b91e3bcaf6f76bd606aa941e3c7f /src/main/java/cc/polyfrost/oneconfig/internal/mixin/NetHandlerPlayClientMixin.java | |
parent | 9624c38e07c7f18ec754cf5ee14d54df31e708dc (diff) | |
download | OneConfig-3aa1e46c963a015906e72d7ae0b4f2ba6a0dbc58.tar.gz OneConfig-3aa1e46c963a015906e72d7ae0b4f2ba6a0dbc58.tar.bz2 OneConfig-3aa1e46c963a015906e72d7ae0b4f2ba6a0dbc58.zip |
a few little things that I noticed when doc'ing
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/internal/mixin/NetHandlerPlayClientMixin.java')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/internal/mixin/NetHandlerPlayClientMixin.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/internal/mixin/NetHandlerPlayClientMixin.java b/src/main/java/cc/polyfrost/oneconfig/internal/mixin/NetHandlerPlayClientMixin.java index 877d540..0673c77 100644 --- a/src/main/java/cc/polyfrost/oneconfig/internal/mixin/NetHandlerPlayClientMixin.java +++ b/src/main/java/cc/polyfrost/oneconfig/internal/mixin/NetHandlerPlayClientMixin.java @@ -17,7 +17,7 @@ public class NetHandlerPlayClientMixin { @Inject(method = "addToSendQueue", at = @At("HEAD"), cancellable = true) private void onSendPacket(Packet<?> p_147297_1_, CallbackInfo ci) { SendPacketEvent event = new SendPacketEvent(p_147297_1_); - EventManager.INSTANCE.post(event); + EventManager.getEventManager().post(event); if (event.isCancelled) { ci.cancel(); } @@ -27,7 +27,7 @@ public class NetHandlerPlayClientMixin { private void onClientChat(S02PacketChat packetIn, CallbackInfo ci) { if (packetIn.getType() == 0) { ChatReceiveEvent event = new ChatReceiveEvent(packetIn.getChatComponent()); - EventManager.INSTANCE.post(event); + EventManager.getEventManager().post(event); if (event.isCancelled) { ci.cancel(); } |