menu
#9718446 Can't use method return value in write context

Submitted by PocketMine-MP 5.8.2

General information

Version: 5.8.2
Git commit: c3c81b09
Plugin involvement: Direct
Report date: 2023-12-03 04:04:51 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 44 seconds

System Information

PHP version: 8.1.26
JIT status: Not available
Operating system: linux
System banner: Linux 49ec092b-7a95-41ff-81d8-3dc85617f43c 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64

Error information

Warning: the HCF plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Can't use method return value in write context
File: plugins/HCF/src/HCF/airdrop/task/AirdropTask
Line: #25
Type: E_COMPILE_ERROR
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
    private $world;
private $position;

public function __construct(World $world, Vector3 $position) {
$this->world = $world;
$this->position = $position;
}

public function onRun(): void {
$this->position() = $this->position;
for($y = $this->position()->getFloorY(); $y >= World::Y_MIN; $y--){
if(!($block = $this->position()->getWorld()->getBlockAt($this->position()->getFloorX(), $y, $this->position()->getFloorZ()))->isSolid()){
$this->getHandler()->cancel();
} else {
$block = $this->world->getBlock($this->position);
$this->world->setBlock($this->position, VanillaBlocks::AIR());
$this->position = $this->position->add(0, -1, 0);
$this->world->setBlock($this->position, $block, true, true);
}
}

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show