Alright, I come with two issues.
1) Saplings. I'm having issues with my sapling icon:
@Override
public int getBlockTextureFromSideAndMetadata (int side, int metadata) {
return 32 + metadata;
}
'int' is underlined and eclipse says "The return type is in-compatible with Block.getBlockTexture..." but causes no real problems. Also, MC is looking for the right file to use, but in the wrong folder. I want it to look in /mods/mps/texture... but it looks in the minecraft.jar texture folder.
2)I have a working config, it generates and everything. Now, what I have set up is in my base class I have an int called TextureSize, and by changing it tells the mod whether to use animated 32-bit textures or normal 16-bit texture. I tried to get something like this working:
Configuration config = new Configuration(event.getSuggestedConfigurationFile());
config.load();
boolean Textures = config.get(Configuration.CATEGORY_GENERAL, "High Resolution Textures", true).getBoolean(false);
Property someProperty = config.get(Configuration.CATEGORY_GENERAL, "SomeConfigString", "Does nothing");
someProperty.comment = "Ignore this, it will be used later.";
config.save();
if (Textures = true){
this.TextureSize = 32;
}else{
this.TextureSize = 16;
}
}
yet it does nothing. Any tips on how to do this?