mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user