mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Improve painting performance
these really shouldn't hit the CPU at all considering they are simply static objects ...
This commit is contained in:
@ -998,6 +998,14 @@ abstract class Entity{
|
||||
$this->scheduleUpdate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when a random update is performed on the chunk the entity is in. This happens when the chunk is within the
|
||||
* ticking chunk range of a player (or chunk loader).
|
||||
*/
|
||||
public function onRandomUpdate() : void{
|
||||
$this->scheduleUpdate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Flags the entity as needing a movement update on the next tick. Setting this forces a movement update even if the
|
||||
* entity's motion is zero. Used to trigger movement updates when blocks change near entities.
|
||||
|
Reference in New Issue
Block a user