Fix javac doing wrong elimination

This commit is contained in:
IzzelAliz 2021-01-21 20:50:51 +08:00
parent 97da4024fe
commit 98c16f0b15

View File

@ -118,9 +118,12 @@ public abstract class ArmorStandEntityMixin extends LivingEntityMixin {
private Collection<ItemEntity> arclight$drops() {
Collection<ItemEntity> drops = this.captureDrops();
if (drops == null) {
this.captureDrops(new ArrayList<>());
ArrayList<ItemEntity> list = new ArrayList<>();
this.captureDrops(list);
return list;
} else {
return drops;
}
return this.captureDrops();
}
private void arclight$callEntityDeath() {