Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forester error #257

Closed
LordBoos opened this issue Apr 2, 2012 · 1 comment
Closed

Forester error #257

LordBoos opened this issue Apr 2, 2012 · 1 comment

Comments

@LordBoos
Copy link

LordBoos commented Apr 2, 2012

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)
@marcelo-mason
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants