fix rebase compilation errors

This commit is contained in:
Kieran Wallbanks 2021-03-21 21:44:27 +00:00
parent 03f092fa54
commit f593590ab4

View File

@ -186,7 +186,7 @@ public class NettyPlayerConnection extends PlayerConnection {
}
return;
} else if (message instanceof ServerPacket) {
final ServerPacket serverPacket = (ServerPacket) message;
ServerPacket serverPacket = (ServerPacket) message;
if ((SerializationManager.AUTOMATIC_COMPONENT_TRANSLATION && !skipTranslating) && getPlayer() != null && serverPacket instanceof ComponentHoldingServerPacket) {
serverPacket = ((ComponentHoldingServerPacket) serverPacket).copyWithOperator(component -> MinecraftServer.getSerializationManager().translate(component, getPlayer()));