mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Another fix
This commit is contained in:
parent
3023df2033
commit
8e127e60a0
4 changed files with 11 additions and 7 deletions
|
|
@ -1348,11 +1348,9 @@ class Player{
|
|||
default:
|
||||
$damage = 1;//$this->server->difficulty;
|
||||
}
|
||||
$this->server->api->entity->harm($data["target"], $damage, $this->eid);
|
||||
if($slot->isSword() !== false){
|
||||
$slot->meta++;
|
||||
}elseif($slot->isTool() === true){
|
||||
$slot->meta += 2;
|
||||
$target->harm($damage, $this->eid);
|
||||
if($slot->isTool() === true){
|
||||
$slot->useOn($target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue