Guess what, configs

This commit is contained in:
Norbi Peti 2019-01-10 01:46:59 +01:00
parent bfe7d48760
commit 8ccf3ee9d7
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56

View file

@ -5,11 +5,11 @@ import buttondevteam.lib.architecture.ConfigData;
public class TownColorComponent extends Component {
public ConfigData<Byte> colorCount() { //TODO
return getData("colorCount", (byte) 1, cc -> (byte) cc, cc -> (int) cc);
return getConfig().getData("colorCount", (byte) 1, cc -> (byte) cc, cc -> (int) cc);
}
public ConfigData<Boolean> useNationColors() { //TODO
return getData("useNationColors", true);
return getConfig().getData("useNationColors", true);
}
@Override