Added strength, weakness, resistance effects, fixed entity area

This commit is contained in:
Shoghi Cervantes
2015-03-29 14:49:47 +02:00
parent c2baaf435d
commit d5ba2a72a5
9 changed files with 44 additions and 46 deletions

View File

@@ -323,10 +323,10 @@ abstract class Entity extends Location implements Metadatable{
foreach($this->effects as $effect){
if($effect->isVisible()){
$c = $effect->getColor();
$color[0] += $c[0];
$color[1] += $c[1];
$color[2] += $c[2];
++$count;
$color[0] += $c[0] * ($effect->getAmplifier() + 1);
$color[1] += $c[1] * ($effect->getAmplifier() + 1);
$color[2] += $c[2] * ($effect->getAmplifier() + 1);
$count += $effect->getAmplifier() + 1;
if(!$effect->isAmbient()){
$ambient = false;
}
@@ -1541,11 +1541,6 @@ abstract class Entity extends Location implements Metadatable{
return (((int) $this->getDataProperty($propertyId)) & (1 << $id)) > 0;
}
/**
* @deprecated
*/
public function getData(){}
public function __destruct(){
$this->close();
}