fixed roses of oblivion not spawning

Closes #242
This commit is contained in:
Ell 2022-02-11 20:59:31 +01:00
parent 07f7a2e39a
commit 5905e7bbb8

View file

@ -60,7 +60,7 @@ public class BlockEndFlower extends BushBlock implements IModItem, ICustomBlockS
var living = event.getEntityLiving();
if (living.level.isClientSide || !(living instanceof EnderDragon dragon))
return;
if (dragon.deathTime < 150 || dragon.deathTime % 10 != 0)
if (dragon.dragonDeathTime < 150 || dragon.dragonDeathTime % 10 != 0)
return;
for (var i = 0; i < 6; i++) {