mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
!Fixed MMOCore comp issue
This commit is contained in:
parent
38bc71326f
commit
313ba0e21c
@ -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;
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user