Removed item drops for custom entities for now. They will be restored in the future
This commit is contained in:
parent
47f615a31e
commit
3dc7542a4c
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user