From c908bcbc44630281bcf850b337cff17b135cb53f Mon Sep 17 00:00:00 2001 From: UnfamiliarLegacy <74633542+UnfamiliarLegacy@users.noreply.github.com> Date: Tue, 25 Jun 2024 07:18:03 +0200 Subject: [PATCH] Fix packet constructors temporarily --- .../shockwave/packets/ShockPacketIncoming.java | 8 ++------ .../shockwave/packets/ShockPacketOutgoing.java | 8 ++------ pom.xml | 2 +- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/G-Earth/src/main/java/gearth/protocol/packethandler/shockwave/packets/ShockPacketIncoming.java b/G-Earth/src/main/java/gearth/protocol/packethandler/shockwave/packets/ShockPacketIncoming.java index 3f25a6b..13ea435 100644 --- a/G-Earth/src/main/java/gearth/protocol/packethandler/shockwave/packets/ShockPacketIncoming.java +++ b/G-Earth/src/main/java/gearth/protocol/packethandler/shockwave/packets/ShockPacketIncoming.java @@ -36,12 +36,8 @@ public class ShockPacketIncoming extends ShockPacket { super(HPacketFormat.WEDGIE_INCOMING, header, objects); } - public ShockPacketIncoming(String identifier, HMessage.Direction direction) throws InvalidParameterException { - super(HPacketFormat.WEDGIE_INCOMING, identifier, direction); - } - - public ShockPacketIncoming(String identifier, HMessage.Direction direction, Object... objects) throws InvalidParameterException { - super(HPacketFormat.WEDGIE_INCOMING, identifier, direction, objects); + public ShockPacketIncoming(String identifier, Object... objects) throws InvalidParameterException { + super(HPacketFormat.WEDGIE_INCOMING, identifier, HMessage.Direction.TOCLIENT, objects); } @Override diff --git a/G-Earth/src/main/java/gearth/protocol/packethandler/shockwave/packets/ShockPacketOutgoing.java b/G-Earth/src/main/java/gearth/protocol/packethandler/shockwave/packets/ShockPacketOutgoing.java index a588d5e..70a078b 100644 --- a/G-Earth/src/main/java/gearth/protocol/packethandler/shockwave/packets/ShockPacketOutgoing.java +++ b/G-Earth/src/main/java/gearth/protocol/packethandler/shockwave/packets/ShockPacketOutgoing.java @@ -35,12 +35,8 @@ public class ShockPacketOutgoing extends ShockPacket { super(HPacketFormat.WEDGIE_INCOMING, header, objects); } - public ShockPacketOutgoing(String identifier, HMessage.Direction direction) throws InvalidParameterException { - super(HPacketFormat.WEDGIE_INCOMING, identifier, direction); - } - - public ShockPacketOutgoing(String identifier, HMessage.Direction direction, Object... objects) throws InvalidParameterException { - super(HPacketFormat.WEDGIE_INCOMING, identifier, direction, objects); + public ShockPacketOutgoing(String identifier, Object... objects) throws InvalidParameterException { + super(HPacketFormat.WEDGIE_INCOMING, identifier, HMessage.Direction.TOSERVER, objects); } @Override diff --git a/pom.xml b/pom.xml index 2900575..57a43fe 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ - 1.5.4-beta-2 + 1.5.4-beta-3 -SNAPSHOT 1.5.3