From b1fce28b47e2705bf31c5992b919031771957177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=9Bd5001?= Date: Sun, 28 Jan 2018 19:08:23 +0000 Subject: [PATCH] Fixing startup warning when folders were already created --- src/Ad5001/BetterGen/Main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ad5001/BetterGen/Main.php b/src/Ad5001/BetterGen/Main.php index 5e86051..73def36 100644 --- a/src/Ad5001/BetterGen/Main.php +++ b/src/Ad5001/BetterGen/Main.php @@ -66,8 +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(LootTable::getPluginFolder()); - mkdir(LootTable::getPluginFolder() . "loots"); + @mkdir(LootTable::getPluginFolder()); + @mkdir(LootTable::getPluginFolder() . "loots"); if (!file_exists(LootTable::getPluginFolder() . "processingLoots.json")) file_put_contents(LootTable::getPluginFolder() . "processingLoots.json", "{}"); }