Fix non-passengers being tickable without checking canUpdate() (#10304)

This commit is contained in:
Jonathing authored and GitHub committed 2025-01-22 13:36:57 -08:00
1 parent b9600a27dc
commit 2e7e537029
1 file changed
+8
@@ -85,6 +85,14 @@
}
}
@@ -681,6 +_,7 @@
return BuiltInRegistries.f_256780_.m_7981_(p_8648_.m_6095_()).toString();
});
profilerfiller.m_6174_("tickNonPassenger");
+ if (p_8648_.canUpdate())
p_8648_.m_8119_();
this.m_46473_().m_7238_();
@@ -700,6 +_,7 @@
return BuiltInRegistries.f_256780_.m_7981_(p_8664_.m_6095_()).toString();
});