Zone mod parsing

This commit is contained in:
Anuken 2019-09-30 12:18:43 -04:00 committed by GitHub
parent c361f692df
commit a2474e71cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,8 @@ public class ContentParser{
},
ContentType.item, parser(ContentType.item, Item::new),
ContentType.liquid, parser(ContentType.liquid, Liquid::new),
ContentType.mech, parser(ContentType.mech, Mech::new)
ContentType.mech, parser(ContentType.mech, Mech::new),
ContentType.zone, parser(ContentType.zone, Zone::new)
);
private <T extends Content> TypeParser<T> parser(ContentType type, Function<String, T> constructor){