mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 03:06:55 +00:00
Entity: don't rebuild metadata every tick unless an associated property changed
this should improve performance back to PM3 levels.
This commit is contained in:
@ -137,6 +137,7 @@ class ExperienceOrb extends Entity{
|
||||
throw new \InvalidArgumentException("XP amount must be greater than 0, got $amount");
|
||||
}
|
||||
$this->xpValue = $amount;
|
||||
$this->networkPropertiesDirty = true;
|
||||
}
|
||||
|
||||
public function hasTargetPlayer() : bool{
|
||||
|
Reference in New Issue
Block a user