mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-20 07:57:42 +01:00
Small cleanup.
This commit is contained in:
@@ -27,12 +27,11 @@ import com.velocitypowered.proxy.command.builtin.VelocityCommand;
|
|||||||
import com.velocitypowered.proxy.config.VelocityConfiguration;
|
import com.velocitypowered.proxy.config.VelocityConfiguration;
|
||||||
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
|
||||||
import com.velocitypowered.proxy.console.VelocityConsole;
|
import com.velocitypowered.proxy.console.VelocityConsole;
|
||||||
|
import com.velocitypowered.proxy.event.VelocityEventManager;
|
||||||
import com.velocitypowered.proxy.network.ConnectionManager;
|
import com.velocitypowered.proxy.network.ConnectionManager;
|
||||||
import com.velocitypowered.proxy.network.ProtocolUtils;
|
import com.velocitypowered.proxy.network.ProtocolUtils;
|
||||||
import com.velocitypowered.proxy.network.serialization.FaviconSerializer;
|
import com.velocitypowered.proxy.network.serialization.FaviconSerializer;
|
||||||
import com.velocitypowered.proxy.network.serialization.GameProfileSerializer;
|
import com.velocitypowered.proxy.network.serialization.GameProfileSerializer;
|
||||||
import com.velocitypowered.proxy.event.VelocityEventManager;
|
|
||||||
import com.velocitypowered.proxy.network.ConnectionManager;
|
|
||||||
import com.velocitypowered.proxy.plugin.VelocityPluginManager;
|
import com.velocitypowered.proxy.plugin.VelocityPluginManager;
|
||||||
import com.velocitypowered.proxy.scheduler.VelocityScheduler;
|
import com.velocitypowered.proxy.scheduler.VelocityScheduler;
|
||||||
import com.velocitypowered.proxy.server.ServerMap;
|
import com.velocitypowered.proxy.server.ServerMap;
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ public class VelocityEventManager implements EventManager {
|
|||||||
}
|
}
|
||||||
final UntargetedEventHandler untargetedHandler =
|
final UntargetedEventHandler untargetedHandler =
|
||||||
untargetedMethodHandlers.get(info.method);
|
untargetedMethodHandlers.get(info.method);
|
||||||
requireNonNull(untargetedHandler);
|
assert untargetedHandler != null;
|
||||||
final EventHandler<Object> handler = event -> untargetedHandler.execute(listener, event);
|
final EventHandler<Object> handler = event -> untargetedHandler.execute(listener, event);
|
||||||
registrations.add(new HandlerRegistration(pluginContainer, info.order,
|
registrations.add(new HandlerRegistration(pluginContainer, info.order,
|
||||||
info.eventType, listener, handler, info.asyncType));
|
info.eventType, listener, handler, info.asyncType));
|
||||||
|
|||||||
Reference in New Issue
Block a user