mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-31 07:21:17 +00:00
Uoops!
This commit is contained in:
parent
56665dfdb3
commit
f932003ff3
1
README
1
README
@ -46,3 +46,4 @@ Current features of the server:
|
|||||||
- Players spawn and see each other moving!
|
- Players spawn and see each other moving!
|
||||||
- PvP and life regeneration!
|
- PvP and life regeneration!
|
||||||
- Multiple worlds and importing!
|
- Multiple worlds and importing!
|
||||||
|
+ more!
|
@ -393,7 +393,7 @@ class Session{
|
|||||||
break;
|
break;
|
||||||
case MC_INTERACT:
|
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){
|
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;
|
break;
|
||||||
case MC_ANIMATE:
|
case MC_ANIMATE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user