Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SubscribeEvent
- public void textureStitch(TextureStitchEvent.Pre event) {
- TextureMap map = event.map;
- for(ResourceLocation tex : BlockRegister.textures) {
- map.getTextureExtry(tex.toString());
- TextureAtlasSprite texture = map.getTextureExtry(tex.toString());
- if(texture == null) {
- texture = ModelLoader.defaultTextureGetter().apply(tex);
- map.setTextureEntry(tex.toString(), texture);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement