mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Removed some unnecessary stuff PhpStorm complained about
This commit is contained in:
parent
ae76ac82c8
commit
58788b4bc7
@ -1585,7 +1585,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($this->motionY > 0){
|
if($this->motionY > 0){
|
||||||
$this->startAirTicks = (-(log($this->gravity / ($this->gravity + $this->drag * $this->motionY))) / $this->drag) * 2 + 5;
|
$this->startAirTicks = (-log($this->gravity / ($this->gravity + $this->drag * $this->motionY)) / $this->drag) * 2 + 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -2398,7 +2398,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
$heldItem = $this->inventory->getItemInHand();
|
$heldItem = $this->inventory->getItemInHand();
|
||||||
|
|
||||||
$damage = [
|
$damage = [
|
||||||
EntityDamageEvent::MODIFIER_BASE => $heldItem->getAttackPoints(),
|
EntityDamageEvent::MODIFIER_BASE => $heldItem->getAttackPoints()
|
||||||
];
|
];
|
||||||
|
|
||||||
if(!$this->canInteract($target, 8)){
|
if(!$this->canInteract($target, 8)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user