Xenophilicy / OreGen

PocketMine plugin to spawn ores in a cobblestone generator!
https://poggit.pmmp.io/p/OreGen
GNU General Public License v3.0
11 stars 11 forks source link

Error and Crash #2

Closed timothytay closed 5 years ago

timothytay commented 5 years ago

Hello, I tried the OreGen plugin today and noticed a very big problem. After adding the plugin successfully, when a player creates a cobblestone generator or causes it to generate a new block, my server crashes followed by this error in console: 30.01 14:20:04 [Server] Server thread/CRITICAL ErrorException: "mt_rand(): max(0) is smaller than min(1)" (EXCEPTION) in "OreGen.phar/src/Xenophilicy/OreGen/OreGen" at line 61

Xenophilicy commented 5 years ago

Hello @timothytay,

I am very sorry you are experiencing this issue. Thank you for the error, that helps narrow the issue down a lot.

In order to confirm your issue, may I ask if you are running the latest update yet (v1.0.3)? If so, would you mind refreshing your data for OreGen by deleting the config.yml (possibly settings.yml) inside your plugin data folder? This will create a new config file with the updated inputs. Note: If you are using a release from Poggit, as of 2/1/19 9:20 CST, the release for the new version is not available, as it has not been approved yet (hopefully soon they will wake up). You can however download the latest here at GitHub from the master file. Thanks for your patience.

Please let me know if this resolves your issue. Thanks!

Xenophilicy commented 5 years ago

Issue was resolved in an update made to the plugin. Please download the latest version to continue to use the plugin with full functionality. Thanks!