mirror of
https://github.com/songoda/EpicHeads.git
synced 2024-12-01 15:04:07 +01:00
Mobs will no longer drop null heads.
This commit is contained in:
parent
46c09cb8d2
commit
3641097d6e
@ -58,7 +58,10 @@ public class DeathListeners implements Listener {
|
||||
} else {
|
||||
if (!Setting.DROP_MOB_HEADS.getBoolean() || event.getEntity() instanceof ArmorStand) return;
|
||||
|
||||
Head head = new Head(-1, null, HeadType.valueOf(event.getEntity().getType().name()).getUrl(), null, null, (byte) 0);
|
||||
Head head = new Head(-1, Methods.formatText(event.getEntity().getType().name().toLowerCase()
|
||||
.replace("_", " "), true),
|
||||
HeadType.valueOf(event.getEntity().getType().name()).getUrl(),
|
||||
null, null, (byte) 0);
|
||||
itemNew = head.asItemStack();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user