mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Move XP drop amount to Human instead of Player
This commit is contained in:
@@ -1435,7 +1435,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
|
||||
public function getXpDropAmount() : int{
|
||||
if(!$this->isCreative()){
|
||||
return min(100, $this->getCurrentTotalXp());
|
||||
return parent::getXpDropAmount();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user