Allow armor replacing (changing armor to another armor)

This commit is contained in:
Shoghi Cervantes 2013-08-20 11:23:55 +02:00
parent e42314ade7
commit a34595292d
3 changed files with 10 additions and 3 deletions

View file

@ -383,6 +383,10 @@ class Entity extends Position{
$this->tickCounter = 0;
}
if($this->closed === true){
return false;
}
if($this->isStatic === false){
$startX = floor($this->x - 0.5 - $this->size - 1);
$y = (int) round($this->y - 1);