mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 06:55:29 +00:00
Added correct friction factor for ice & packed-ice
This commit is contained in:
parent
84c8ac03fb
commit
d6266d19b6
@ -48,6 +48,10 @@ class Ice extends Transparent{
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getFrictionFactor() : float{
|
||||||
|
return 0.98;
|
||||||
|
}
|
||||||
|
|
||||||
public function getToolType() : int{
|
public function getToolType() : int{
|
||||||
return Tool::TYPE_PICKAXE;
|
return Tool::TYPE_PICKAXE;
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,10 @@ class PackedIce extends Solid{
|
|||||||
return 0.5;
|
return 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getFrictionFactor() : float{
|
||||||
|
return 0.98;
|
||||||
|
}
|
||||||
|
|
||||||
public function getToolType() : int{
|
public function getToolType() : int{
|
||||||
return Tool::TYPE_PICKAXE;
|
return Tool::TYPE_PICKAXE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user