Merge branch 'release/3.4' into release/3.5

This commit is contained in:
Dylan K. Taylor
2018-12-14 09:39:21 +00:00
4 changed files with 31 additions and 20 deletions

View File

@ -637,6 +637,9 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
* @param float $value
*/
public function setScale(float $value) : void{
if($value <= 0){
throw new \InvalidArgumentException("Scale must be greater than 0");
}
$multiplier = $value / $this->getScale();
$this->width *= $multiplier;