Skip to content
This repository has been archived by the owner on Feb 2, 2018. It is now read-only.

Commit

Permalink
Quick notes..
Browse files Browse the repository at this point in the history
  • Loading branch information
inxomnyaa committed Feb 19, 2017
1 parent daa738c commit f442b21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pocketmine/entity/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ public function despawnFrom(Player $player){
* @param EntityDamageEvent $source
*
*/
public function attack($damage, EntityDamageEvent $source){
public function attack($damage, EntityDamageEvent $source){ //$damage is unused
if($this->hasEffect(Effect::FIRE_RESISTANCE) and (
$source->getCause() === EntityDamageEvent::CAUSE_FIRE
or $source->getCause() === EntityDamageEvent::CAUSE_FIRE_TICK
Expand All @@ -788,7 +788,7 @@ public function attack($damage, EntityDamageEvent $source){
* @param EntityRegainHealthEvent $source
*
*/
public function heal($amount, EntityRegainHealthEvent $source){
public function heal($amount, EntityRegainHealthEvent $source){ //$amount is unused
$this->server->getPluginManager()->callEvent($source);
if($source->isCancelled()){
return;
Expand Down

0 comments on commit f442b21

Please sign in to comment.