mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-26 20:55:54 +01:00
Remove unused method
This commit is contained in:
parent
6af64c7eed
commit
55cef01b94
@ -3719,18 +3719,6 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
public String getNPCName(int id) {
|
||||
return depends.getNPCName(id);
|
||||
}
|
||||
|
||||
public static int countInv(Inventory inv, Material m, int subtract) {
|
||||
int count = 0;
|
||||
for (ItemStack i : inv.getContents()) {
|
||||
if (i != null) {
|
||||
if (i.getType().equals(m)) {
|
||||
count += i.getAmount();
|
||||
}
|
||||
}
|
||||
}
|
||||
return count - subtract;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether an NPC has a quest that the player may accept
|
||||
|
Loading…
Reference in New Issue
Block a user