Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (picture.hasDisplayName()) {
- if (picture.getDisplayName().contains(":"))
- location = new ResourceLocation(picture.getDisplayName() + ".png");
- else location = new ResourceLocation("lca:textures/slides/" + picture.getDisplayName() + ".png");
- if (FMLCommonHandler.instance().getSide() == Side.CLIENT) {
- IResourceManager manager = Minecraft.getMinecraft().getResourceManager();
- // try {
- // if (manager.getResource(location) == null) location = null;
- // } catch (IOException e) {
- // }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement