Fixes #385
This commit is contained in:
parent
18f1886e72
commit
eba4ba8326
@ -284,7 +284,7 @@ public class PacketHandlerSpawn implements IPacketHandler {
|
|||||||
|
|
||||||
if (!((PlayerDisguise) disguise).isDisplayedInTab()) {
|
if (!((PlayerDisguise) disguise).isDisplayedInTab()) {
|
||||||
if (LibsPremium.getPaidInformation() == null ||
|
if (LibsPremium.getPaidInformation() == null ||
|
||||||
LibsPremium.getPaidInformation().getBuildNumber().matches("[0-9]+")) {
|
LibsPremium.getPaidInformation().getBuildNumber().matches("#[0-9]+")) {
|
||||||
packets.addDelayedPacket(deleteTab, DisguiseConfig.getPlayerDisguisesTablistExpires());
|
packets.addDelayedPacket(deleteTab, DisguiseConfig.getPlayerDisguisesTablistExpires());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ public class PacketListenerViewSelfDisguise extends PacketAdapter {
|
|||||||
|
|
||||||
if (event.getPacketType() == Server.ENTITY_METADATA) {
|
if (event.getPacketType() == Server.ENTITY_METADATA) {
|
||||||
if (!LibsPremium.getPluginInformation().isPremium() || LibsPremium.getPaidInformation() != null ||
|
if (!LibsPremium.getPluginInformation().isPremium() || LibsPremium.getPaidInformation() != null ||
|
||||||
LibsPremium.getPluginInformation().getBuildNumber().matches("[0-9]+")) {
|
LibsPremium.getPluginInformation().getBuildNumber().matches("#[0-9]+")) {
|
||||||
event.setPacket(packet = packet.deepClone());
|
event.setPacket(packet = packet.deepClone());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user