Fix entity type in conversion event to Drowned (#8479)

This commit is contained in:
sciwhiz12 authored and GitHub committed 2022-02-25 00:49:48 +00:00
1 parent 2ab4685149
commit 5dd3842b77
1 file changed
+1 -1
@@ -5,7 +5,7 @@
if (this.m_34329_()) {
--this.f_34266_;
- if (this.f_34266_ < 0) {
+ if (this.f_34266_ < 0 && net.minecraftforge.event.ForgeEventFactory.canLivingConvert(this, EntityType.f_20501_, (timer) -> this.f_34266_ = timer)) {
+ if (this.f_34266_ < 0 && net.minecraftforge.event.ForgeEventFactory.canLivingConvert(this, EntityType.f_20562_, (timer) -> this.f_34266_ = timer)) {
this.m_7595_();
}
} else if (this.m_7593_()) {