v0.6.1a: the final ring/scroll/potion is no longer auto-IDed
This commit is contained in:
parent
7027c19b5f
commit
03405857a0
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user