Fixing startup warning when folders were already created

这个提交包含在:
Λd5001 2018-01-28 19:08:23 +00:00 提交者 GitHub
父节点 082a8060f9
当前提交 b1fce28b47
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 2 次插入2 次删除

查看文件

@ -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", "{}");
}