mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-30 12:01:26 +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
|
* @return the global event handler
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
public static GlobalEventHandler getGlobalEventListener() {
|
public static GlobalEventHandler getGlobalEventHandler() {
|
||||||
return globalEventHandler;
|
return globalEventHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ public interface EventHandler {
|
|||||||
|
|
||||||
// Global listeners
|
// Global listeners
|
||||||
if (!(this instanceof GlobalEventHandler)) {
|
if (!(this instanceof GlobalEventHandler)) {
|
||||||
MinecraftServer.getGlobalEventListener().callEvent(eventClass, event);
|
MinecraftServer.getGlobalEventHandler().callEvent(eventClass, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Local listeners
|
// Local listeners
|
||||||
|
Loading…
Reference in New Issue
Block a user