v0.6.1a: the final ring/scroll/potion is no longer auto-IDed

This commit is contained in:
Evan Debenham 2017-08-16 22:31:39 -04:00
parent 7027c19b5f
commit 03405857a0

View File

@ -148,18 +148,8 @@ public class ItemStatusHandler<T extends Item> {
return known.contains( item.getClass() );
}
@SuppressWarnings("unchecked")
public void know( T item ) {
known.add( (Class<? extends T>)item.getClass() );
if (known.size() == items.length - 1) {
for (int i=0; i < items.length; i++) {
if (!known.contains( items[i] )) {
known.add( items[i] );
break;
}
}
}
}
public HashSet<Class<? extends T>> known() {