From 082a8060f96a3f6e1e511c0ab753e0d5ef4d280d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=9Bd5001?= Date: Sun, 28 Jan 2018 16:07:55 +0000 Subject: [PATCH] Quick fix #40 --- src/Ad5001/BetterGen/Main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ad5001/BetterGen/Main.php b/src/Ad5001/BetterGen/Main.php index 4a3dc1e..5e86051 100644 --- a/src/Ad5001/BetterGen/Main.php +++ b/src/Ad5001/BetterGen/Main.php @@ -66,7 +66,8 @@ class Main extends PluginBase implements Listener { $this->getServer()->getPluginManager()->registerEvents($this, $this); Generator::addGenerator(BetterNormal::class, "betternormal"); if ($this->isOtherNS()) $this->getLogger()->warning("Tesseract detected. Note that Tesseract is not up to date with the generation structure and some generation features may be limited or not working"); - @mkdir($this->getDataFolder()); + mkdir(LootTable::getPluginFolder()); + mkdir(LootTable::getPluginFolder() . "loots"); if (!file_exists(LootTable::getPluginFolder() . "processingLoots.json")) file_put_contents(LootTable::getPluginFolder() . "processingLoots.json", "{}"); }