diff --git a/README b/README index 8ef0bc17..3a089a9d 100644 --- a/README +++ b/README @@ -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! \ No newline at end of file diff --git a/classes/Session.class.php b/classes/Session.class.php index cb44dc12..a6ad7d75 100644 --- a/classes/Session.class.php +++ b/classes/Session.class.php @@ -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: