mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Allow armor replacing (changing armor to another armor)
This commit is contained in:
parent
e42314ade7
commit
a34595292d
3 changed files with 10 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue