diff --git a/README.md b/README.md index a162faf..9bb8bba 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,10 @@ Highly maintained and updated fork of [TeaSpoon](https://github.com/CortexPE/Tea *** **PLEASE NOTE: We do NOT provide any support for branches, forks, or unofficial versions of TableSpoon nor do we support any unofficial or beta releases of PocketMine. We are NOT responsible for any damages or corruptions that - may occur by using this plugins. You assume ALL responsibility and accept the risks by using this plugin.** + may occur by using this plugin. You assume ALL responsibility and accept the risks by using this plugin.** -TableSpoon is not yet complete which means it **ships with many known and unknown issues and bugs** that you should be +TableSpoon is not yet complete which means it **ships with many unknown issues and bugs** that you should be aware of before attempting to use certain features. Do not expect anything to "just work" as nothing is guaranteed at this point in development (extremely alpha stage, duh). By using our releases, you acknowledge that there may be non-commercialized/production features not implemented, misbehaving, or simply broken. **This is normal**, we will @@ -33,7 +33,7 @@ You may contribute by opening a pull request to add features, fix bugs, or simpl branch. ### Known issues (also see our todo list) -* Nether portal doesn't get created in Nether level +* A nether portal doesn't get created in Nether level * End portal teleports over void * Enchantment tables and anvils are not functional diff --git a/src/Xenophilicy/TableSpoon/TableSpoon.php b/src/Xenophilicy/TableSpoon/TableSpoon.php index 5768d4e..c978332 100644 --- a/src/Xenophilicy/TableSpoon/TableSpoon.php +++ b/src/Xenophilicy/TableSpoon/TableSpoon.php @@ -14,11 +14,11 @@ use Xenophilicy\TableSpoon\handlers\{EnchantHandler, PacketHandler}; use Xenophilicy\TableSpoon\inventory\BrewingManager; use Xenophilicy\TableSpoon\item\{enchantment\Enchantment, ItemManager}; -use Xenophilicy\TableSpoon\level\LevelManager; use Xenophilicy\TableSpoon\level\weather\Weather; use Xenophilicy\TableSpoon\network\PacketManager; use Xenophilicy\TableSpoon\player\PlayerSession; use Xenophilicy\TableSpoon\player\PlayerSessionManager; +use Xenophilicy\TableSpoon\task\DelayedLevelLoadTask; use Xenophilicy\TableSpoon\task\TickLevelsTask; use Xenophilicy\TableSpoon\tile\Tile; use Xenophilicy\TableSpoon\utils\FishingLootTable; @@ -68,7 +68,7 @@ public function onEnable(){ } private function initManagers(){ - LevelManager::init(); + $this->getScheduler()->scheduleTask(new DelayedLevelLoadTask()); PlayerSessionManager::init(); CommandManager::init(); Enchantment::init(); diff --git a/src/Xenophilicy/TableSpoon/task/DelayedLevelLoadTask.php b/src/Xenophilicy/TableSpoon/task/DelayedLevelLoadTask.php new file mode 100644 index 0000000..abc56a7 --- /dev/null +++ b/src/Xenophilicy/TableSpoon/task/DelayedLevelLoadTask.php @@ -0,0 +1,25 @@ +getScheduler()->scheduleTask(new $this()); + } +}