mirror of
https://github.com/AntiCope/meteor-rejects.git
synced 2025-09-06 12:25:49 +00:00
Fix OreSim Crash
Fixes a crash when the seed's version is too old (Ore.getConfig() returns null, resulting in a NullPointerException.)
This commit is contained in:
@@ -231,6 +231,12 @@ public class OreSim extends Module {
|
||||
if (seed == null) return;
|
||||
worldSeed = seed;
|
||||
oreConfig = Ore.getConfig(Seeds.get().getSeed().version);
|
||||
if (oreConfig == null) {
|
||||
error("Ore Sim only works with seeds from version 1.14 or higher. (Current seed is from version " + Seeds.get().getSeed().version.toString() + ")");
|
||||
this.toggle();
|
||||
return;
|
||||
}
|
||||
|
||||
chunkRenderers.clear();
|
||||
if (mc.world != null && worldSeed != null) {
|
||||
loadVisibleChunks();
|
||||
|
Reference in New Issue
Block a user