Major refactoring

Added cactus and lilypads
This commit is contained in:
octarine-noise
2014-06-29 21:53:35 +02:00
parent ec184f9916
commit 220f2356d8
26 changed files with 773 additions and 303 deletions

View File

@@ -142,7 +142,14 @@ public class LeafTextureGenerator implements IIconRegister, IResourceManager {
@SubscribeEvent
public void endTextureReload(TextureStitchEvent.Post event) {
blockTextures = null;
if (event.map.getTextureType() == 0) BetterFoliage.log.info(String.format("Generated %d leaf textures", counter));
if (event.map.getTextureType() == 0) {
BetterFoliage.log.info(String.format("Generated %d leaf textures", counter));
// don't leave a mess
Map<String, IResourceManager> domainManagers = ReflectionUtil.getDomainResourceManagers();
if (domainManagers == null) return;
domainManagers.remove(domainName);
}
}
public void loadLeafMappings(File leafMaskFile) {