Removed item drops for custom entities for now. They will be restored in the future

This commit is contained in:
David Berdik 2019-06-22 17:09:23 -04:00
parent 47f615a31e
commit 3dc7542a4c
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ public class CustomSkeleton extends EntitySkeleton implements CustomEntity {
@Override
public void killCustom() {
for (int i = 1; i <= 2500; ++i) {
/*for (int i = 1; i <= 2500; ++i) {
if (Herobrine.getPluginCore().getConfigDB().npc.contains("npc.Demon.Drops." + Integer.toString(i))) {
final int chance = new Random().nextInt(100);
if (chance <= Herobrine.getPluginCore().getConfigDB().npc.getInt("npc.Demon.Drops." + Integer.toString(i) + ".Chance")) {
@ -56,7 +56,7 @@ public class CustomSkeleton extends EntitySkeleton implements CustomEntity {
new ItemStack(Material.getMaterial(i), Herobrine.getPluginCore().getConfigDB().npc.getInt("npc.Demon.Drops." + Integer.toString(i) + ".Count")));
}
}
}
}*/
setHealth(0.0f);
}

View File

@ -68,13 +68,13 @@ public class CustomZombie extends EntityZombie implements CustomEntity {
mobS = "Warrior";
}
for (int i = 1; i <= 2500; ++i) {
if (Herobrine.getPluginCore().getConfigDB().npc.contains("npc." + mobS + ".Drops." + Integer.toString(i))) {
/*if (Herobrine.getPluginCore().getConfigDB().npc.contains("npc." + mobS + ".Drops." + Integer.toString(i))) {
final int chance = new Random().nextInt(100);
if (chance <= Herobrine.getPluginCore().getConfigDB().npc.getInt("npc." + mobS + ".Drops." + Integer.toString(i) + ".Chance")) {
getBukkitEntity().getLocation().getWorld().dropItemNaturally(getBukkitEntity().getLocation(),
new ItemStack(Material.getMaterial(i), Herobrine.getPluginCore().getConfigDB().npc.getInt("npc." + mobS + ".Drops." + Integer.toString(i) + ".Count")));
}
}
}*/
}
setHealth(0.0f);
}