!Fixed MMOCore comp issue

This commit is contained in:
Indyuce 2019-12-23 19:26:05 +01:00
parent 38bc71326f
commit 313ba0e21c
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,6 @@ import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import net.Indyuce.mmocore.api.item.NBTItem;
import net.Indyuce.mmocore.api.load.MMOLineConfig;
import net.Indyuce.mmocore.api.quest.ObjectiveProgress;
import net.Indyuce.mmocore.api.quest.QuestProgress;
@ -14,6 +13,7 @@ import net.Indyuce.mmocore.api.quest.objective.Objective;
import net.Indyuce.mmocore.comp.citizens.CitizenInteractEvent;
import net.Indyuce.mmoitems.MMOItems;
import net.Indyuce.mmoitems.api.Type;
import net.mmogroup.mmolib.api.item.NBTItem;
public class GetMMOItemObjective extends Objective {
private final Type type;

View File

@ -47,7 +47,7 @@ public class SmeltMMOItemExperienceSource extends SpecificExperienceSource<NBTIt
PlayerData data = PlayerData.get(player.get());
for (SmeltMMOItemExperienceSource source : getSources())
if (source.matches(data, nbt))
source.giveExperience(data);
source.giveExperience(data, event.getBlock().getLocation().add(.5, 1, .5));
}
}
};