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