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