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

This commit is contained in:
Jonathing authored and GitHub committed 2025-01-22 13:54:20 -08:00
1 parent 9b47c8647f
commit 5122b0bc3c
1 file changed
+8
@@ -84,6 +84,14 @@
}
}
@@ -659,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_();
@@ -678,6 +_,7 @@
return BuiltInRegistries.f_256780_.m_7981_(p_8664_.m_6095_()).toString();
});