mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +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.
|
* Sets whether the entity is able to climb climbable blocks.
|
||||||
* @param bool $value
|
* @param bool $value
|
||||||
*/
|
*/
|
||||||
public function setCanClimb(bool $value){
|
public function setCanClimb(bool $value = true){
|
||||||
$this->setGenericFlag(self::DATA_FLAG_CAN_CLIMB, $value);
|
$this->setGenericFlag(self::DATA_FLAG_CAN_CLIMB, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user