mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 15:35:31 +00:00
Revert "Fix #1615"
This reverts commit a8359f29a81a9cc6836b14535a3256f06853482b.
This commit is contained in:
parent
a8359f29a8
commit
3e882ef40d
@ -59,9 +59,6 @@ abstract class Living extends Entity implements Damageable{
|
|||||||
|
|
||||||
public function attack($damage, $source = EntityDamageEvent::CAUSE_MAGIC){
|
public function attack($damage, $source = EntityDamageEvent::CAUSE_MAGIC){
|
||||||
//TODO: attack tick limit
|
//TODO: attack tick limit
|
||||||
if($this instanceof Player && $this->getGamemode() === 1 && $source != EntityDamageEvent::CAUSE_MAGIC) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$pk = new EntityEventPacket();
|
$pk = new EntityEventPacket();
|
||||||
$pk->eid = $this->getID();
|
$pk->eid = $this->getID();
|
||||||
$pk->event = 2; //Ouch!
|
$pk->event = 2; //Ouch!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user