mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
add a default value for Entity->setCanClimb()
This commit is contained in:
parent
460d540dbc
commit
db8a835a64
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user