Advertisement
tahg

Untitled

Jun 5th, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. if (picture.hasDisplayName()) {
  2. if (picture.getDisplayName().contains(":"))
  3. location = new ResourceLocation(picture.getDisplayName() + ".png");
  4. else location = new ResourceLocation("lca:textures/slides/" + picture.getDisplayName() + ".png");
  5. if (FMLCommonHandler.instance().getSide() == Side.CLIENT) {
  6. IResourceManager manager = Minecraft.getMinecraft().getResourceManager();
  7. // try {
  8. // if (manager.getResource(location) == null) location = null;
  9. // } catch (IOException e) {
  10. // }
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement