crnw-dev / IslandArchitect

An plugin to create custom sky island generators for the SkyBlock plugin
Apache License 2.0
13 stars 4 forks source link

"Class name must be a valid object or a string" (EXCEPTION) in "plugins/SkyBlock-63c9a69ad21db776a361846d08c5af2ef3f3ad54/src/room17/SkyBlock/island/IslandListener" at line 236 #19

Closed Endermanbugzjfc closed 3 years ago

Endermanbugzjfc commented 3 years ago

SkyBlock plugin crash when creating template islands

Cause

Getting the generator from the SkyBlock Island object returns null on template islands

Error

2021-03-16 [02:04:29] [Server thread/CRITICAL]: Error: "Class name must be a valid object or a string" (EXCEPTION) in "plugins/SkyBlock-63c9a69ad21db776a361846d08c5af2ef3f3ad54/src/room17/SkyBlock/island/IslandListener" at line 236
2021-03-16 [02:04:29] [Server thread/CRITICAL]: #0 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): room17\SkyBlock\island\IslandListener->onChunkLoad(object pocketmine\event\level\ChunkLoadEvent)
2021-03-16 [02:04:29] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object room17\SkyBlock\island\IslandListener, object pocketmine\event\level\ChunkLoadEvent)
2021-03-16 [02:04:29] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\level\ChunkLoadEvent)
Endermanbugzjfc commented 3 years ago

5aeaa01dcaf2b28fb363ac4b21c51c18fefd581c

The cause of this error is place the island chest at a chunk other then 0, 0, that is why I didn't get the error when testing.

Endermanbugzjfc commented 3 years ago

Haven't fix yet

Endermanbugzjfc commented 3 years ago

1b1f1b63