mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-29 19:41:47 +01:00
fixed GlobalEventHandler getter name
This commit is contained in:
parent
6e3df970fa
commit
54d3a6bace
@ -292,7 +292,7 @@ public final class MinecraftServer {
|
||||
* @return the global event handler
|
||||
*/
|
||||
@NotNull
|
||||
public static GlobalEventHandler getGlobalEventListener() {
|
||||
public static GlobalEventHandler getGlobalEventHandler() {
|
||||
return globalEventHandler;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user