Merge branch 'stable'

This commit is contained in:
Dylan K. Taylor
2020-11-21 21:13:48 +00:00
42 changed files with 1192 additions and 1075 deletions

View File

@@ -727,7 +727,7 @@ class NetworkSession{
if(count($attributes) > 0){
$this->sendDataPacket(UpdateAttributesPacket::create($entity->getId(), array_map(function(Attribute $attr) : NetworkAttribute{
return new NetworkAttribute($attr->getId(), $attr->getMinValue(), $attr->getMaxValue(), $attr->getValue(), $attr->getDefaultValue());
}, $attributes)));
}, $attributes), 0));
}
}
@@ -736,7 +736,7 @@ class NetworkSession{
* @phpstan-param array<int, MetadataProperty> $properties
*/
public function syncActorData(Entity $entity, array $properties) : void{
$this->sendDataPacket(SetActorDataPacket::create($entity->getId(), $properties));
$this->sendDataPacket(SetActorDataPacket::create($entity->getId(), $properties, 0));
}
public function onEntityEffectAdded(Living $entity, EffectInstance $effect, bool $replacesOldEffect) : void{