mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 06:43:05 +00:00
Register models and colors more efficiently
This commit is contained in:
1 parent
6b912633b9
commit
65c63dcc63
7 files changed
+74
-91
No files matched your search
@@ -13,7 +13,7 @@ import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
import forestry.api.arboriculture.EnumWoodType;
|
||||
import forestry.core.models.ModelManager;
|
||||
import forestry.api.core.ForestryAPI;
|
||||
import forestry.core.render.ForestryResource;
|
||||
import forestry.core.utils.Translator;
|
||||
|
||||
@@ -63,7 +63,7 @@ public class WoodHelper {
|
||||
int meta = stack.getMetadata();
|
||||
EnumWoodType woodType = wood.getWoodType(meta);
|
||||
String blockKind = wood.getBlockKind();
|
||||
return ModelManager.getInstance().getModelLocation(blockKind + "/" + woodType);
|
||||
return ForestryAPI.modelManager.getModelLocation(blockKind + "/" + woodType);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user