mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
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:
parent
755bf8295d
commit
9f324ba7ba
@ -206,6 +206,7 @@ abstract class Entity(
|
||||
lastTickTime = time
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun tryTick(): Boolean {
|
||||
val time = millis()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user