orphu/mcdungeon — pull request #79 by JiFish (2012-09-24 21:23:18+00:00)
Title: Added readme files and some basic book checking.

I added the readme files. They contain a explanation of the folder and basic instructions for creating your own entries.

I also added some basic checking on book loading. Book with pages longer than 256 characters or more than 50 pages will be cropped. Although Minecraft actually works with books that don't obey these limits, it's probably not a good idea to go that far over. Since we are dealing with an arbitrary limit, it might as well be the one Minecraft uses.

At minimum this prevents everything going really bad should someone just drop a large text file in the books directory without reading the instructions.