From eba4ba832645f6634666fc05e900b57fd5ce0ea1 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 26 Jul 2019 13:28:28 +1200 Subject: [PATCH] Fixes #385 --- .../utilities/packets/packethandlers/PacketHandlerSpawn.java | 2 +- .../packets/packetlisteners/PacketListenerViewSelfDisguise.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java index ad5fabab..cf91eb1f 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerSpawn.java @@ -284,7 +284,7 @@ public class PacketHandlerSpawn implements IPacketHandler { if (!((PlayerDisguise) disguise).isDisplayedInTab()) { if (LibsPremium.getPaidInformation() == null || - LibsPremium.getPaidInformation().getBuildNumber().matches("[0-9]+")) { + LibsPremium.getPaidInformation().getBuildNumber().matches("#[0-9]+")) { packets.addDelayedPacket(deleteTab, DisguiseConfig.getPlayerDisguisesTablistExpires()); } } diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerViewSelfDisguise.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerViewSelfDisguise.java index 2286bfec..bd7239a6 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerViewSelfDisguise.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerViewSelfDisguise.java @@ -114,7 +114,7 @@ public class PacketListenerViewSelfDisguise extends PacketAdapter { if (event.getPacketType() == Server.ENTITY_METADATA) { if (!LibsPremium.getPluginInformation().isPremium() || LibsPremium.getPaidInformation() != null || - LibsPremium.getPluginInformation().getBuildNumber().matches("[0-9]+")) { + LibsPremium.getPluginInformation().getBuildNumber().matches("#[0-9]+")) { event.setPacket(packet = packet.deepClone()); }