add a default value for Entity->setCanClimb()

This commit is contained in:
Dylan K. Taylor 2017-11-17 12:19:04 +00:00
parent 460d540dbc
commit db8a835a64

View File

@ -668,7 +668,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
* Sets whether the entity is able to climb climbable blocks.
* @param bool $value
*/
public function setCanClimb(bool $value){
public function setCanClimb(bool $value = true){
$this->setGenericFlag(self::DATA_FLAG_CAN_CLIMB, $value);
}