Forester error
LordBoos opened this issue ยท 1 comments
23:24:50 [WARNING] Task of 'PreciousStones' generated an exception
java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Unknown Source)
at net.sacredlabyrinth.Phaed.PreciousStones.managers.ForesterManager.getTree(ForesterManager.java:220)
at net.sacredlabyrinth.Phaed.PreciousStones.managers.ForesterManager.generateTree(ForesterManager.java:199)
at net.sacredlabyrinth.Phaed.PreciousStones.entries.ForesterEntry.doPlantingAttempt(ForesterEntry.java:102)
at net.sacredlabyrinth.Phaed.PreciousStones.entries.ForesterEntry.access$100(ForesterEntry.java:12)
at net.sacredlabyrinth.Phaed.PreciousStones.entries.ForesterEntry$Update.run(ForesterEntry.java:73)
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:591)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:509)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
Means you don't have the "tree-types" flag configured on your forester. Check the wiki:
http://wiki.sacredlabyrinth.net/index.php/PreciousStones#Field_Flags
Either way, i made it so it doesn't throw an exception if its missing and defaults to regular minecraft trees