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:
Ursprung
1e18d51d18
Commit
5d673b6edd
@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren