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

This commit is contained in:
Jonathing authored and GitHub committed 2025-01-22 14:33:21 -08:00
1 parent f1a52f7326
commit b1c37c25b5
1 file changed
+8
@@ -84,6 +84,14 @@
}
}
@@ -646,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_();
@@ -665,6 +_,7 @@
return Registry.f_122826_.m_7981_(p_8664_.m_6095_()).toString();
});