entity: synchronize ticking

Now we can not tick multiple times at the same time (this caused lag for the camera entity)
This commit is contained in:
Moritz Zwerger 2025-03-09 22:53:49 +01:00
parent 755bf8295d
commit 9f324ba7ba
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -206,6 +206,7 @@ abstract class Entity(
lastTickTime = time lastTickTime = time
} }
@Synchronized
fun tryTick(): Boolean { fun tryTick(): Boolean {
val time = millis() val time = millis()