3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-19 14:30:17 +01:00

Avoid using var

Dieser Commit ist enthalten in:
BlueTree242 2024-04-22 14:18:56 +02:00
Ursprung 1e18d51d18
Commit 5d673b6edd
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: BB02183B33B4F258

Datei anzeigen

@ -42,6 +42,7 @@ import org.geysermc.erosion.packet.geyserbound.GeyserboundPacket;
import org.geysermc.floodgate.pluginmessage.PluginMessageChannels; import org.geysermc.floodgate.pluginmessage.PluginMessageChannels;
import org.geysermc.geyser.GeyserImpl; import org.geysermc.geyser.GeyserImpl;
import org.geysermc.geyser.GeyserLogger; import org.geysermc.geyser.GeyserLogger;
import org.geysermc.geyser.api.event.EventBus;
import org.geysermc.geyser.api.event.java.ServerCustomPayloadEvent; import org.geysermc.geyser.api.event.java.ServerCustomPayloadEvent;
import org.geysermc.geyser.session.GeyserSession; import org.geysermc.geyser.session.GeyserSession;
import org.geysermc.geyser.translator.protocol.PacketTranslator; import org.geysermc.geyser.translator.protocol.PacketTranslator;
@ -140,7 +141,7 @@ public class JavaCustomPayloadTranslator extends PacketTranslator<ClientboundCus
session.sendUpstreamPacket(toSend); session.sendUpstreamPacket(toSend);
}); });
} else { } else {
var eventBus = session.getGeyser().eventBus(); EventBus eventBus = session.getGeyser().eventBus();
eventBus.fire(new ServerCustomPayloadEvent(session, channel, packet.getData())); eventBus.fire(new ServerCustomPayloadEvent(session, channel, packet.getData()));
} }
} }