Don't send packets unless disguise is in use
This commit is contained in:
parent
a286773c04
commit
350a3aa9b5
@ -149,6 +149,10 @@ public abstract class Disguise {
|
|||||||
public abstract double getHeight();
|
public abstract double getHeight();
|
||||||
|
|
||||||
protected void sendArmorStands(String[] oldName) {
|
protected void sendArmorStands(String[] oldName) {
|
||||||
|
if (!isDisguiseInUse()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ArrayList<PacketContainer> packets = DisguiseUtilities.getNamePackets(this, oldName);
|
ArrayList<PacketContainer> packets = DisguiseUtilities.getNamePackets(this, oldName);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user