Taiterio / ce

The Official Custom Enchantments Repository
GNU Lesser General Public License v3.0
18 stars 38 forks source link

Compiling from Github Error #19

Closed ptem closed 8 years ago

ptem commented 8 years ago

ArrayIndexOutOfBoundsException: 4 when running built jar from github resource.

Libraries: Craftbukkit 1.8.8 Vault Worldedit 6.1 Worldguard 5.9

Attempted using both JDK 1.7.0_79 and the latest 1.8 JDK. No errors in IntelliJ on compile, only during runtime on a test server. http://pastebin.com/562m7ds5

DrkMatr1984 commented 8 years ago

This looks like a config generation error. Regen config and see if this still happens.

ptem commented 8 years ago

Yes, it still happens. However, I am noticing that the final line in the default config, "Enchantments:" is missing when it generates.

ptem commented 8 years ago

Built using a different IDE, works fine. Thanks anyway, DrkMatr1984! :)

DrkMatr1984 commented 8 years ago

OK Cool :) Glad this is resolved.

Yeah it was occurring because it could not build the list of enchantments in the config. Usually after the Enchantments line it begins listing the enchantments and their options. For some reason your original copy was not building this section correctly.