From 8401f9b091f6e0896ddca54c3ac667eb81120478 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 15 Jun 2014 19:37:00 +1200 Subject: [PATCH] Add and deprecate Equipment packets config setter option --- src/me/libraryaddict/disguise/DisguiseConfig.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/me/libraryaddict/disguise/DisguiseConfig.java b/src/me/libraryaddict/disguise/DisguiseConfig.java index c653ee07..c4ebe6d6 100644 --- a/src/me/libraryaddict/disguise/DisguiseConfig.java +++ b/src/me/libraryaddict/disguise/DisguiseConfig.java @@ -269,11 +269,9 @@ public class DisguiseConfig { disguiseEntityExpire = newExpires; } + @Deprecated public static void setEnquipmentPacketsEnabled(boolean enabled) { - if (enabled != isEquipmentPacketsEnabled()) { - equipmentEnabled = enabled; - PacketsManager.setupMainPacketsListener(); - } + setEquipmentPacketsEnabled(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 */