This commit is contained in:
Anuken 2021-08-15 22:23:31 -04:00
parent 747c6186d4
commit d83f48891a

View File

@ -99,7 +99,7 @@ public class ContentParser{
put(AmmoType.class, (type, data) -> { put(AmmoType.class, (type, data) -> {
//string -> item //string -> item
//if liquid ammo support is added, this should scan for liquids as well //if liquid ammo support is added, this should scan for liquids as well
if(data.isString()) return find(ContentType.item, data.asString()); if(data.isString()) return new ItemAmmoType(find(ContentType.item, data.asString()));
//number -> power //number -> power
if(data.isNumber()) return new PowerAmmoType(data.asFloat()); if(data.isNumber()) return new PowerAmmoType(data.asFloat());