Revert "Fix #1615"

This reverts commit a8359f29a81a9cc6836b14535a3256f06853482b.
This commit is contained in:
williamtdr 2014-07-11 09:12:19 -05:00
parent a8359f29a8
commit 3e882ef40d

View File

@ -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!