fixed GlobalEventHandler getter name

This commit is contained in:
Felix Cravic 2020-12-09 22:36:15 +01:00
parent 6e3df970fa
commit 54d3a6bace
2 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ public final class MinecraftServer {
* @return the global event handler
*/
@NotNull
public static GlobalEventHandler getGlobalEventListener() {
public static GlobalEventHandler getGlobalEventHandler() {
return globalEventHandler;
}

View File

@ -94,7 +94,7 @@ public interface EventHandler {
// Global listeners
if (!(this instanceof GlobalEventHandler)) {
MinecraftServer.getGlobalEventListener().callEvent(eventClass, event);
MinecraftServer.getGlobalEventHandler().callEvent(eventClass, event);
}
// Local listeners