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

This commit is contained in:
Jonathing authored and GitHub committed 2025-01-22 14:54:16 -08:00
1 parent 38e0661f67
commit f77fa169f8
1 file changed
+8
@@ -84,6 +84,14 @@
}
}
@@ -640,6 +_,7 @@
return Registry.f_122826_.m_7981_(p_8648_.m_6095_()).toString();
});
profilerfiller.m_6174_("tickNonPassenger");
+ if (p_8648_.canUpdate())
p_8648_.m_8119_();
this.m_46473_().m_7238_();
@@ -656,9 +_,10 @@
++p_8664_.f_19797_;
ProfilerFiller profilerfiller = this.m_46473_();