From 3fd4ddf9642caaed1d85574b3c236e5e4d15d4a9 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 23 Nov 2013 09:39:36 +1300 Subject: [PATCH] Deprecated setRiding and isRiding as they are no longer in the game --- src/me/libraryaddict/disguise/LibsDisguises.java | 2 +- src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/LibsDisguises.java b/src/me/libraryaddict/disguise/LibsDisguises.java index 4a6fbbdb..76e5a662 100644 --- a/src/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/me/libraryaddict/disguise/LibsDisguises.java @@ -205,7 +205,7 @@ public class LibsDisguises extends JavaPlugin { } } } catch (Exception ex) { - System.out.print("[LibsDisguises] Trouble while making values for " + disguiseType.name() + ": " + System.out.print("[LibsDisguises] Trouble while making values for disguise " + disguiseType.name() + ": " + ex.getMessage()); System.out.print("[LibsDisguises] Please report this to LibsDisguises author"); ex.printStackTrace(); diff --git a/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java index 62a965d5..00cc13ae 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java @@ -172,6 +172,7 @@ public class FlagWatcher { return getFlag(5); } + @Deprecated public boolean isRiding() { return getFlag(2); } @@ -290,6 +291,7 @@ public class FlagWatcher { setItemStack(slot.getSlot(), itemStack); } + @Deprecated public void setRiding(boolean setRiding) { setFlag(0, 2, setRiding); sendData(0);