From 158f2bc94b5ffb1dc2ba299b82ac578bc9cc0e9a Mon Sep 17 00:00:00 2001 From: Kyle Robertson Date: Sat, 12 Sep 2020 19:08:25 +0100 Subject: [PATCH] Fix to mines not resetting from PC-imported worlds Fix for the reset task failing for PC imported worlds, as the world name isn't correct --- src/falkirks/minereset/listener/MineCreationSession.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/falkirks/minereset/listener/MineCreationSession.php b/src/falkirks/minereset/listener/MineCreationSession.php index 7dd7a41..4a8d3c7 100644 --- a/src/falkirks/minereset/listener/MineCreationSession.php +++ b/src/falkirks/minereset/listener/MineCreationSession.php @@ -115,7 +115,7 @@ public function generate(MineManager $owner): Mine{ $mine = new Mine($owner, new Vector3(min($this->pointA->getFloorX(), $this->pointB->getFloorX()), min($this->pointA->getFloorY(), $this->pointB->getFloorY()), min($this->pointA->getFloorZ(), $this->pointB->getFloorZ())), new Vector3(max($this->pointA->getFloorX(), $this->pointB->getFloorX()), max($this->pointA->getFloorY(), $this->pointB->getFloorY()), max($this->pointA->getFloorZ(), $this->pointB->getFloorZ())), - $this->level->getName(), + $this->level->getFolderName(), $this->name); $owner[$this->name] = $mine; return $mine; @@ -125,4 +125,4 @@ public function generate(MineManager $owner): Mine{ } } -} \ No newline at end of file +}