mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Fixed #5774
This commit is contained in:
parent
747c6186d4
commit
d83f48891a
@ -99,7 +99,7 @@ public class ContentParser{
|
||||
put(AmmoType.class, (type, data) -> {
|
||||
//string -> item
|
||||
//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
|
||||
if(data.isNumber()) return new PowerAmmoType(data.asFloat());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user