From 714eaaf0cfb76af8bea467db4f49e13d59095240 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 14 Jul 2014 12:41:55 +1200 Subject: [PATCH] Actually getValue isn't that great a idea --- .../libraryaddict/disguise/disguisetypes/FlagWatcher.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java index b086f1b5..1cc2c388 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java @@ -177,10 +177,10 @@ public class FlagWatcher { return getItemStack(slot.getSlot()); } - protected T getValue(int no, T backup) { + protected Object getValue(int no, Object backup) { if (entityValues.containsKey(no)) - return (T) entityValues.get(no); - return (T) backup; + return entityValues.get(no); + return backup; } public List getWatchableObjects() {