Files
CustomNPC-Plus/src/main/java/noppes/npcs
PeTcHeNkA 9f30438c4f Validate ResourceLocation existence before assignment in getEntityTexture
Previously, skinType==0 branch created a ResourceLocation directly without
checking if the resource actually exists. This was inconsistent with
adjustLocalTexture(), which probes the ResourceManager and falls back on
missing assets.

Now we call Minecraft.geMinecraft().getResourceManager().getResource(resLoc)
and catch IOException. On failure, we fall back to a valid texture via
fallBackSkin(npc), ensuring rendering always uses a valid path and avoiding
invalid ResourceLocation assignments.

This change aligns behavior across texture loading paths and prevents
rendering errors when NPC textures are missing.
2025-12-24 03:39:33 +03:00
..
2025-07-23 14:22:52 -04:00
2025-03-13 17:14:45 -04:00
2025-07-23 14:22:52 -04:00
2025-04-15 20:02:34 -04:00
2025-07-23 14:22:52 -04:00
2025-03-13 17:14:45 -04:00
2025-07-23 14:22:52 -04:00
2025-07-23 14:22:52 -04:00
2025-10-28 00:10:58 -04:00
2025-07-23 14:22:52 -04:00
2025-07-23 14:22:52 -04:00
2025-07-23 14:22:52 -04:00
2025-03-13 17:14:45 -04:00
2025-07-23 14:22:52 -04:00
2025-08-27 15:48:31 -04:00
2025-03-13 17:14:45 -04:00
2025-07-23 14:22:52 -04:00
2025-07-23 14:22:52 -04:00
2025-07-23 14:22:52 -04:00
2025-03-13 17:14:45 -04:00
2025-03-13 17:14:45 -04:00
2025-03-13 17:14:45 -04:00
2025-07-23 14:22:52 -04:00
2025-07-23 14:22:52 -04:00
2025-07-23 14:22:52 -04:00
2025-07-23 14:22:52 -04:00
2025-07-23 14:22:52 -04:00
2025-03-13 17:14:45 -04:00
2025-03-13 17:14:45 -04:00
2025-03-13 17:14:45 -04:00
2025-07-23 14:22:52 -04:00
2025-03-13 17:14:45 -04:00
2025-07-23 14:22:52 -04:00
2025-03-13 17:14:45 -04:00
2025-03-13 17:14:45 -04:00