mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
BlockBreakEvent: rename inconsistently-named function
This commit is contained in:
@ -134,7 +134,7 @@ class BlockBreakEvent extends BlockEvent implements Cancellable{
|
||||
*
|
||||
* @param int $amount
|
||||
*/
|
||||
public function setXpDrops(int $amount) : void{
|
||||
public function setXpDropAmount(int $amount) : void{
|
||||
if($amount < 0){
|
||||
throw new \InvalidArgumentException("Amount must be at least zero");
|
||||
}
|
||||
|
Reference in New Issue
Block a user