Somewhat fix #622

This commit is contained in:
libraryaddict 2021-10-01 15:21:59 +13:00
parent d3d4df2d65
commit 0f84008abd

View File

@ -796,7 +796,9 @@ public abstract class Disguise {
getEntity().removeMetadata("LastDisguise", LibsDisguises.getInstance()); getEntity().removeMetadata("LastDisguise", LibsDisguises.getInstance());
} }
getEntity().setMetadata("LastDisguise", new FixedMetadataValue(LibsDisguises.getInstance(), System.currentTimeMillis())); if (DisguiseConfig.getPvPTimer() > 0) {
getEntity().setMetadata("LastDisguise", new FixedMetadataValue(LibsDisguises.getInstance(), System.currentTimeMillis()));
}
if (NmsVersion.v1_13.isSupported()) { if (NmsVersion.v1_13.isSupported()) {
removeBossBar(); removeBossBar();