Eradicate remaining usages of public Position->world field

and as an added bonus, ditch a bunch of extra phpstan errors
This commit is contained in:
Dylan K. Taylor
2020-05-19 19:14:56 +01:00
parent 8a8b1b0b97
commit 337addf1de
4 changed files with 4 additions and 84 deletions

View File

@ -96,7 +96,7 @@ trait ContainerTrait{
$pos = $this->getPos();
foreach($inv->getContents() as $k => $item){
$pos->world->dropItem($pos->add(0.5, 0.5, 0.5), $item);
$pos->getWorldNonNull()->dropItem($pos->add(0.5, 0.5, 0.5), $item);
}
$inv->clearAll();
}