mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-23 08:59:31 +00:00
Fixed me being stupid
This commit is contained in:
@@ -49,6 +49,10 @@ public class DeathListeners implements Listener {
|
|||||||
|
|
||||||
@EventHandler(priority = EventPriority.LOW)
|
@EventHandler(priority = EventPriority.LOW)
|
||||||
public void onOtherDeath(@NotNull final EntityDeathEvent event) {
|
public void onOtherDeath(@NotNull final EntityDeathEvent event) {
|
||||||
|
if (event.getEntityType() != EntityType.ILLUSIONER) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
event.getDrops().addAll(IllusionerManager.OPTIONS.getDrops());
|
event.getDrops().addAll(IllusionerManager.OPTIONS.getDrops());
|
||||||
event.setDroppedExp(IllusionerManager.OPTIONS.generateXp());
|
event.setDroppedExp(IllusionerManager.OPTIONS.generateXp());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user