Actually getValue isn't that great a idea

This commit is contained in:
libraryaddict 2014-07-14 12:41:55 +12:00
parent 90a92e8ce1
commit 714eaaf0cf

View File

@ -177,10 +177,10 @@ public class FlagWatcher {
return getItemStack(slot.getSlot()); return getItemStack(slot.getSlot());
} }
protected <T extends Object> T getValue(int no, T backup) { protected Object getValue(int no, Object backup) {
if (entityValues.containsKey(no)) if (entityValues.containsKey(no))
return (T) entityValues.get(no); return entityValues.get(no);
return (T) backup; return backup;
} }
public List<WrappedWatchableObject> getWatchableObjects() { public List<WrappedWatchableObject> getWatchableObjects() {