Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-08 17:20:24 +01:00
Use correct packet type when warning for missing mapping
Dieser Commit ist enthalten in:
Ursprung
137050be16
Commit
cc3dae127b
@ -91,7 +91,7 @@ public abstract class Protocol<C1 extends ClientboundPacketType, C2 extends Clie
|
|||||||
if (mappedPacket == null) {
|
if (mappedPacket == null) {
|
||||||
// Packet doesn't exist on new client
|
// Packet doesn't exist on new client
|
||||||
Preconditions.checkArgument(hasRegisteredOutgoing(State.PLAY, oldId),
|
Preconditions.checkArgument(hasRegisteredOutgoing(State.PLAY, oldId),
|
||||||
"Packet " + mappedPacket + " in " + getClass().getSimpleName() + " has no mapping - it needs to be manually cancelled or remapped!");
|
"Packet " + packet + " in " + getClass().getSimpleName() + " has no mapping - it needs to be manually cancelled or remapped!");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ public abstract class Protocol<C1 extends ClientboundPacketType, C2 extends Clie
|
|||||||
if (mappedPacket == null) {
|
if (mappedPacket == null) {
|
||||||
// Packet doesn't exist on old server
|
// Packet doesn't exist on old server
|
||||||
Preconditions.checkArgument(hasRegisteredIncoming(State.PLAY, newId),
|
Preconditions.checkArgument(hasRegisteredIncoming(State.PLAY, newId),
|
||||||
"Packet " + mappedPacket + " in " + getClass().getSimpleName() + " has no mapping - it needs to be manually cancelled or remapped!");
|
"Packet " + packet + " in " + getClass().getSimpleName() + " has no mapping - it needs to be manually cancelled or remapped!");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren