JohnnyJayJay / spigot-maps

A library to simplify the use of customised maps in Spigot.
GNU Lesser General Public License v3.0
48 stars 4 forks source link

Compatibility assertion when using 1.19 #12

Open arslanarm opened 2 years ago

arslanarm commented 2 years ago

RegEx in the static block of Compatibility.class raises an error because of third number in the version. 1.19.1 works, but 1.19 doesn't because it doesn't match with the regex

To reproduce the error just try to launch 1.19 server with Compatibility class loaded and static block ran

Simple solution would be just to run 1.19.1 server but thats awkward :)

JohnnyJayJay commented 2 years ago

Thanks for reporting this, this was an oversight at the time. I should be able to fix this by making some adjustments to the regex and the compatibility check logic. I'll get to that soon.