mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-05 01:59:37 +01:00
potion effects and fire damage will now convert over to the next entity in stack.
This commit is contained in:
parent
8c04fa8f46
commit
8b8e2c3018
@ -52,15 +52,15 @@ public class DeathListeners implements Listener {
|
||||
newEntity.setVelocity(killed.getVelocity());
|
||||
if (killed instanceof Ageable && !((Ageable) killed).isAdult()) {
|
||||
((Ageable) newEntity).setBaby();
|
||||
}
|
||||
|
||||
if (killed instanceof Sheep) {
|
||||
} else if (killed instanceof Sheep) {
|
||||
((Sheep) newEntity).setColor(((Sheep) killed).getColor());
|
||||
}
|
||||
|
||||
if (killed instanceof Villager) {
|
||||
} else if (killed instanceof Villager) {
|
||||
((Villager) newEntity).setProfession(((Villager) killed).getProfession());
|
||||
}
|
||||
|
||||
newEntity.setFireTicks(killed.getFireTicks());
|
||||
newEntity.addPotionEffects(killed.getActivePotionEffects());
|
||||
|
||||
return newEntity;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user