mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-22 23:08:30 +01:00
fixup default logging base class
- removed translation of some packets (left over from original source) - all events are handled the same way now and translation is only performed in the subclass
This commit is contained in:
parent
e85e16ecfe
commit
909b81275b
1 changed files with 3 additions and 10 deletions
|
@ -30,7 +30,6 @@ import com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler;
|
||||||
import com.nukkitx.protocol.bedrock.packet.*;
|
import com.nukkitx.protocol.bedrock.packet.*;
|
||||||
import org.geysermc.connector.GeyserConnector;
|
import org.geysermc.connector.GeyserConnector;
|
||||||
import org.geysermc.connector.network.session.GeyserSession;
|
import org.geysermc.connector.network.session.GeyserSession;
|
||||||
import org.geysermc.connector.network.translators.Registry;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bare bones implementation of BedrockPacketHandler suitable for extension.
|
* Bare bones implementation of BedrockPacketHandler suitable for extension.
|
||||||
|
@ -70,9 +69,7 @@ public class LoggingPacketHandler implements BedrockPacketHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(AnimatePacket packet) {
|
public boolean handle(AnimatePacket packet) {
|
||||||
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
return defaultHandler(packet);
|
||||||
Registry.BEDROCK.translate(packet.getClass(), packet, session);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -117,9 +114,7 @@ public class LoggingPacketHandler implements BedrockPacketHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(CommandRequestPacket packet) {
|
public boolean handle(CommandRequestPacket packet) {
|
||||||
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
return defaultHandler(packet);
|
||||||
Registry.BEDROCK.translate(packet.getClass(), packet, session);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -309,9 +304,7 @@ public class LoggingPacketHandler implements BedrockPacketHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(TextPacket packet) {
|
public boolean handle(TextPacket packet) {
|
||||||
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
return defaultHandler(packet);
|
||||||
Registry.BEDROCK.translate(packet.getClass(), packet, session);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue