1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-02-09 17:02:17 +01:00

Remove debug

This commit is contained in:
montlikadani 2020-05-25 19:50:02 +02:00
parent 0c1d7893f4
commit 1a22e7b20e
3 changed files with 5 additions and 2 deletions

View File

@ -227,7 +227,6 @@ public class Job {
public JobInfo getJobInfo(ActionInfo action, int level) {
BiPredicate<JobInfo, ActionInfo> condition = (jobInfo, actionInfo) -> {
if (actionInfo instanceof PotionItemActionInfo) {
Jobs.consoleMsg(jobInfo.getName() + ":" + jobInfo.getMeta());
return jobInfo.getName().equalsIgnoreCase(((PotionItemActionInfo) action).getNameWithPotion()) ||
(jobInfo.getName() + ":" + jobInfo.getMeta()).equalsIgnoreCase(((PotionItemActionInfo) action).getNameWithPotion());
}

View File

@ -683,10 +683,10 @@ public class JobsPaymentListener implements Listener {
}
}
// when we trying to craft tipped arrow effects
ItemStack currentItem = event.getCurrentItem();
if (currentItem != null) {
if (currentItem.hasItemMeta() && currentItem.getItemMeta() instanceof PotionMeta) {
Jobs.consoleMsg(currentItem + " " + currentItem.hasItemMeta() + " " + currentItem.getItemMeta());
PotionMeta potion = (PotionMeta) currentItem.getItemMeta();
Jobs.action(jPlayer, new PotionItemActionInfo(currentItem, ActionType.CRAFT, potion.getBasePotionData().getType()));
} else {

View File

@ -431,6 +431,10 @@ Jobs:
"!Healing Bandage":
income: 1.0
experience: 6.0
# If you add ":" after the tipped_arrow then you can use effect names like in example
tipped_arrow:slowness:
income: 3.0
points: 3.0
# Smelting ores
Smelt:
iron_ingot: