Fixing startup warning when folders were already created
This commit is contained in:
parent
082a8060f9
commit
b1fce28b47
1 changed files with 2 additions and 2 deletions
|
@ -66,8 +66,8 @@ class Main extends PluginBase implements Listener {
|
||||||
$this->getServer()->getPluginManager()->registerEvents($this, $this);
|
$this->getServer()->getPluginManager()->registerEvents($this, $this);
|
||||||
Generator::addGenerator(BetterNormal::class, "betternormal");
|
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");
|
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());
|
||||||
mkdir(LootTable::getPluginFolder() . "loots");
|
@mkdir(LootTable::getPluginFolder() . "loots");
|
||||||
if (!file_exists(LootTable::getPluginFolder() . "processingLoots.json"))
|
if (!file_exists(LootTable::getPluginFolder() . "processingLoots.json"))
|
||||||
file_put_contents(LootTable::getPluginFolder() . "processingLoots.json", "{}");
|
file_put_contents(LootTable::getPluginFolder() . "processingLoots.json", "{}");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue