fix invalid packet id setting (#1629)

This commit is contained in:
Pasqual Koschmieder 2022-06-11 18:30:38 +02:00 committed by GitHub
parent d7bf43001f
commit 250f94e9cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -317,25 +317,25 @@ public class PacketType implements Serializable, Cloneable, Comparable<PacketTyp
* @deprecated Removed in 1.19
*/
@Deprecated
public static final PacketType SPAWN_ENTITY_LIVING = new PacketType(PROTOCOL, SENDER, 246, "SpawnEntityLiving", "SPacketSpawnMob");
public static final PacketType SPAWN_ENTITY_LIVING = new PacketType(PROTOCOL, SENDER, 244, "SpawnEntityLiving", "SPacketSpawnMob");
/**
* @deprecated Removed in 1.19
*/
@Deprecated
public static final PacketType SPAWN_ENTITY_PAINTING = new PacketType(PROTOCOL, SENDER, 247, "SpawnEntityPainting", "SPacketSpawnPainting");
public static final PacketType SPAWN_ENTITY_PAINTING = new PacketType(PROTOCOL, SENDER, 243, "SpawnEntityPainting", "SPacketSpawnPainting");
/**
* @deprecated Removed in 1.19
*/
@Deprecated
public static final PacketType ADD_VIBRATION_SIGNAL = new PacketType(PROTOCOL, SENDER, 248, "AddVibrationSignal");
public static final PacketType ADD_VIBRATION_SIGNAL = new PacketType(PROTOCOL, SENDER, 242, "AddVibrationSignal");
/**
* @deprecated Removed in 1.19
*/
@Deprecated
public static final PacketType BLOCK_BREAK = new PacketType(PROTOCOL, SENDER, 249, "BlockBreak");
public static final PacketType BLOCK_BREAK = new PacketType(PROTOCOL, SENDER, 241, "BlockBreak");
private final static Server INSTANCE = new Server();

View File

@ -55,7 +55,7 @@ public class PacketFilterManager implements ListenerInvoker, InternalManager {
// listener registration reports
private static final ReportType UNSUPPORTED_PACKET = new ReportType(
"Plugin %s tried to register listener for unknown packet %s [direction: to %s]");
"Plugin %s tried to register listener for unknown packet %s [direction: from %s]");
// bukkit references
private final Plugin plugin;