Merge branch 'release/3.5'

This commit is contained in:
Dylan K. Taylor
2018-12-14 10:03:36 +00:00
3 changed files with 20 additions and 15 deletions

View File

@ -629,6 +629,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;