Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Crash #45

Closed
ipad54 opened this issue Jan 25, 2022 · 0 comments
Closed

Crash #45

ipad54 opened this issue Jan 25, 2022 · 0 comments

Comments

@ipad54
Copy link

ipad54 commented Jan 25, 2022

PocketMine-MP Crash Dump Mon Jan 24 18:09:52 UTC 2022

Error: Value 22 is outside the range 0 - 20
File: pmsrc/src/pocketmine/entity/Attribute
Line: 198
Type: InvalidArgumentException

A PLUGIN WAS INVOLVED IN THIS CRASH
BAD PLUGIN: MultiVersion v0.475.1

Code:
[189] return $this->currentValue;
[190] }
[191]
[192] /**
[193] * @return $this
[194] */
[195] public function setValue(float $value, bool $fit = false, bool $forceSend = false){
[196] if($value > $this->getMaxValue() or $value < $this->getMinValue()){
[197] if(!$fit){
[198] throw new \InvalidArgumentException("Value $value is outside the range " . $this->getMinValue() . " - " . $this->getMaxValue());
[199] }
[200] $value = min(max($value, $this->getMinValue()), $this->getMaxValue());
[201] }
[202]
[203] if($this->currentValue != $value){
[204] $this->desynchronized = true;
[205] $this->currentValue = $value;
[206] }elseif($forceSend){
[207] $this->desynchronized = true;
[208] }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants