This commit is contained in:
Shoghi Cervantes Pueyo 2012-12-09 12:38:08 +01:00
parent 56665dfdb3
commit f932003ff3
2 changed files with 2 additions and 1 deletions

1
README
View File

@ -46,3 +46,4 @@ Current features of the server:
- Players spawn and see each other moving!
- PvP and life regeneration!
- Multiple worlds and importing!
+ more!

View File

@ -393,7 +393,7 @@ class Session{
break;
case MC_INTERACT:
if($this->server->difficulty > 0 and isset($this->server->entities[$data["target"]]) and Utils::distance($this->entity->position, $this->server->entities[$data["target"]]->position) <= 8){
$this->server->trigger("onHealthChange", array("eid" => $data["eid"], "health" => $this->server->entities[$data["eid"]]->getHealth() - $this->server->difficulty));
$this->server->trigger("onHealthChange", array("eid" => $data["target"], "health" => $this->server->entities[$data["target"]]->getHealth() - $this->server->difficulty));
}
break;
case MC_ANIMATE: