mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-14 20:59:10 +00:00
Actually getValue isn't that great a idea
This commit is contained in:
parent
90a92e8ce1
commit
714eaaf0cf
1 changed files with 3 additions and 3 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue