We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd27009 commit e7a5800Copy full SHA for e7a5800
plugin.yml
@@ -1,7 +1,7 @@
1
---
2
name: MagicWE2
3
main: xenialdan\MagicWE2\Loader
4
-version: 6.0.1
+version: 6.0.2
5
api: [4.0.0+dev, 3.2.5+dev]
6
load: STARTUP
7
authors:
src/xenialdan/MagicWE2/Selection.php
@@ -147,12 +147,10 @@ public function isValid(): bool
147
$this->getLevel();
148
$this->getPos1();
149
$this->getPos2();
150
- if ($this->getPos1()->getLevel() === $this->getPos2()->getLevel())
151
- return true;
+ return ($this->getPos1()->getLevel() === $this->getLevel() && $this->getPos2()->getLevel() === $this->getLevel());
152
} catch (\Exception $e) {
153
return false;
154
}
155
156
157
158
/**
0 commit comments