Merge branch 'development'

This commit is contained in:
Brianna 2019-10-08 14:47:44 -04:00
commit 0b30f7c6a9
3 changed files with 7 additions and 6 deletions

View File

@ -4,7 +4,7 @@ stages:
variables:
name: "UltimateStacker"
path: "/builds/$CI_PROJECT_PATH"
version: "1.10.14"
version: "1.10.15"
build:
stage: build

View File

@ -126,7 +126,8 @@ public class EntityStack {
if (!preStackedDrops.isEmpty())
DropUtils.processStackedDrop(killed, preStackedDrops);
killedLocation.getWorld().spawn(killedLocation, ExperienceOrb.class).setExperience(droppedExp * amount);
if (droppedExp > 0)
killedLocation.getWorld().spawn(killedLocation, ExperienceOrb.class).setExperience(droppedExp * amount);
if (killed.getKiller() == null) return;
UltimateStacker.getInstance().addExp(killed.getKiller(), this);
@ -200,13 +201,13 @@ public class EntityStack {
}
public void addHealth(double health) {
synchronized(healthLock) {
synchronized (healthLock) {
this.health.addLast(health);
}
}
public void mergeHealth(EntityStack stack) {
synchronized(healthLock) {
synchronized (healthLock) {
this.health.addAll(stack.health);
}
}

View File

@ -7,6 +7,7 @@ import com.songoda.lootables.Modify;
import com.songoda.lootables.loot.*;
import com.songoda.ultimatestacker.UltimateStacker;
import com.songoda.ultimatestacker.settings.Settings;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.*;
@ -77,9 +78,8 @@ public class LootablesManager {
}
}
}
return lootManager.runLoot(modify,
entity.getFireTicks() != -1,
entity.getFireTicks() > 0,
entity.getKiller() != null ? entity.getKiller().getItemInHand() : null,
killer,
loot,