mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Fixed issues with Entity::heal() method
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
namespace pocketmine\entity;
|
||||
|
||||
|
||||
use pocketmine\event\entity\EntityRegainHealthEvent;
|
||||
use pocketmine\nbt\tag\String;
|
||||
use pocketmine\nbt\tag\Byte;
|
||||
use pocketmine\block\Block;
|
||||
@ -126,7 +127,7 @@ class FallingBlock extends Entity{
|
||||
|
||||
}
|
||||
|
||||
public function heal($amount){
|
||||
public function heal($amount, $source = EntityRegainHealthEvent::CAUSE_MAGIC){
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user