Added the ability to customize xp in lootables.

This commit is contained in:
Brianna 2021-04-07 11:24:10 -05:00
parent 4abaa3123f
commit 3105e22063
2 changed files with 1 additions and 5 deletions

View File

@ -124,7 +124,7 @@
<dependency>
<groupId>com.songoda</groupId>
<artifactId>Lootables</artifactId>
<version>1.0.8</version>
<version>1.0.9</version>
</dependency>
<dependency>
<groupId>com.bgsoftware</groupId>

View File

@ -97,7 +97,6 @@ public class EntityStack extends ColdEntityStack {
plugin.getEntityStackManager().removeStack(event.getEntity());
plugin.getDataManager().deleteHost(this);
Location killedLocation = killed.getLocation();
List<Drop> preStackedDrops = new ArrayList<>();
for (int i = 1; i < getAmount(); i++) {
if (i == 1) {
@ -114,9 +113,6 @@ public class EntityStack extends ColdEntityStack {
DropUtils.processStackedDrop(killed, preStackedDrops, event);
if (droppedExp > 0)
killedLocation.getWorld().spawn(killedLocation, ExperienceOrb.class).setExperience(droppedExp * getAmount());
if (killed.getKiller() == null) return;
plugin.addExp(killed.getKiller(), this);
}