9
0
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:
Auxilor
2021-02-20 21:01:00 +00:00
parent 808e9e23f0
commit 30706f016f

View File

@@ -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());
}