Add and deprecate Equipment packets config setter option

This commit is contained in:
libraryaddict 2014-06-15 19:37:00 +12:00
parent 0496134dee
commit 8401f9b091

View File

@ -269,11 +269,9 @@ public class DisguiseConfig {
disguiseEntityExpire = newExpires; disguiseEntityExpire = newExpires;
} }
@Deprecated
public static void setEnquipmentPacketsEnabled(boolean enabled) { public static void setEnquipmentPacketsEnabled(boolean enabled) {
if (enabled != isEquipmentPacketsEnabled()) { setEquipmentPacketsEnabled(enabled);
equipmentEnabled = enabled;
PacketsManager.setupMainPacketsListener();
}
} }
public static void setEntityStatusPacketsEnabled(boolean enabled) { public static void setEntityStatusPacketsEnabled(boolean enabled) {
@ -283,6 +281,13 @@ public class DisguiseConfig {
} }
} }
public static void setEquipmentPacketsEnabled(boolean enabled) {
if (enabled != isEquipmentPacketsEnabled()) {
equipmentEnabled = enabled;
PacketsManager.setupMainPacketsListener();
}
}
/** /**
* Can players hear their own disguises * Can players hear their own disguises
*/ */