mirror of
https://github.com/PikaMug/Quests.git
synced 2025-02-18 13:31:20 +01:00
Remove unused method
This commit is contained in:
parent
6af64c7eed
commit
55cef01b94
@ -3720,18 +3720,6 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
|||||||
return depends.getNPCName(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
|
* Checks whether an NPC has a quest that the player may accept
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user