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
PeTcHeNkA
6cce314341
fix: add fallback skin for invalid CustomNPC texture paths
...
- Add empty string check in skinType 0 else branch
- Set textureLocation to fallBackSkin(npc) for invalid textures
- Add null safety check before returning textureLocation
- Prevents transparent NPCs when invalid paths like "customnpcs:textures/entity/test.png" or "teststring" are used
2025-12-24 03:28:09 +03:00
Kam
0c1d9908aa
Update ScriptPlayerEventHandler.java
2025-10-28 01:53:39 -04:00
Kam
557b8720a4
Update ScriptPlayerEventHandler.java
2025-10-28 00:44:41 -04:00
Kam
9df3db48ce
Update DEV Api Reference
2025-10-28 00:10:58 -04:00
lonewolf8351
85a117fa6a
Merge remote-tracking branch 'origin/dev' into dev
2025-10-28 00:07:02 -04:00
lonewolf8351
6e43c34e91
Added getPartyMembers() method to Iplayer
2025-10-28 00:06:41 -04:00
Kam
803c631f99
Merge pull request #225 from KAMKEEL/codex/fix-translate-y-and-z-in-linked-item-gui
...
Fix linked item translate axes
2025-10-27 23:42:46 -04:00
Kam
6e851b88d2
Fix linked item translate axes
2025-10-27 23:42:40 -04:00
Kam
b5a69b0f2a
Fix ScriptBlockPos add using target position
2025-10-27 23:41:16 -04:00
Kam
faf1019ed1
Merge pull request #220 from KAMKEEL/codex/optimize-player-sync-performance-0c9js2
...
Add debug logging toggle for sync controller
2025-10-27 14:59:43 -04:00
Kam
58437e0bbf
Add ranged invincibility toggle for NPC projectiles
2025-10-21 17:52:48 -04:00
Kam
3d9b54ef5b
Fix NPC hitbox scaling for large sizes
2025-10-20 14:41:45 -04:00
Kam
e73b5f3897
Ensure server identity changes trigger full sync
2025-10-19 22:28:03 -04:00
Kam
b25f2b786e
Add debug logging toggle for sync flow
2025-10-19 22:06:11 -04:00
bigguy345
111f16647d
ActionManager.scheduleParallel not feeding name arg properly
2025-10-15 23:09:20 +03:00
Kam
3ca8b9664b
Clamp selection bounds in script text area
2025-10-15 06:28:43 -04:00
Kam
7da4b276a5
Fix item quest requirements counting per stack
2025-10-15 06:17:48 -04:00
Kam
afe0e8106e
Allow console scripted commands
2025-10-06 20:15:08 -04:00
Kam
3d0c814861
Fix Recipe Button Layout
2025-10-06 15:24:19 -04:00
Kam
2ae3a32ad1
Fix Profile Load Saving
2025-08-27 16:27:40 -04:00
Kam
5b201c0f0e
Bump Release
2025-08-27 15:48:31 -04:00
Kam
065cfb152e
Restore Name
2025-08-27 15:48:10 -04:00
Kam
0ddf2d1d13
Merge branch 'dev' of https://github.com/KAMKEEL/CustomNPC-Plus into dev
2025-08-27 15:47:18 -04:00
Kam
7615a60932
Temporary Disable Analytics
2025-08-27 15:47:16 -04:00
Kam
4245fc9820
Merge pull request #205 from KAMKEEL/codex/fix-crash-in-controls-menu-with-both-mods
...
Fix key binding registration to avoid Controls crash
2025-08-26 04:24:47 -04:00
Kam
d0923752ba
Fix key binding conflict with TinkersConstruct
2025-08-26 04:24:16 -04:00
Kam
88f48c6f94
Fix ClassCastException when interacting with hanging signs
2025-08-26 04:09:51 -04:00
Kam
b6b4b20ba8
Prevent NPE when party leader name missing
2025-07-28 13:27:57 -04:00
Kam
6a31602701
1.10.2 - beta4
2025-07-24 01:56:20 -04:00
Kam
b083e05f16
Recipe Event API
2025-07-23 23:14:29 -04:00
Kam
4bfdd6a5c4
Update EntityNPCFlying.java
2025-07-23 14:30:24 -04:00
Kam
9c541999f3
Optimize Imports
2025-07-23 14:22:52 -04:00
Kam
61dc056735
Fix some Render handling
2025-07-23 14:17:21 -04:00
Kam
2d0d7ce615
Merge pull request #192 from KAMKEEL/codex/fix-npc-gravity-issue-with-flying-gravity-0.0
...
Fix flying NPCs falling when gravity set to 0
2025-07-23 14:08:27 -04:00
Kam
4300db8f78
Fix flyGravity zero not preventing falling
2025-07-23 14:08:14 -04:00
Kam
f1b4f90b41
Merge branch 'dev' of https://github.com/KAMKEEL/CustomNPC-Plus into dev
2025-07-23 14:04:05 -04:00
Kam
cae3d4ca2b
Fix Player Data Remove
2025-07-23 14:04:03 -04:00
Kam
7d0b44d638
fix StringIndexOutOfBounds in GuiScriptTextArea
2025-07-23 13:52:48 -04:00
Kam
9b3c8031e7
Merge pull request #189 from KAMKEEL/codex/fix-sound-duplication-issue-with-bard-npc
...
Fix bard sound duplication
2025-07-23 05:46:42 -04:00
Kam
297b19b2e5
fix: prevent bard song duplication
2025-07-23 05:46:24 -04:00
Kam
15dee0e5b8
Merge pull request #188 from KAMKEEL/codex/find-and-fix-memory-leak-issues
...
Fix memory leaks by closing streams
2025-07-23 05:44:27 -04:00
Kam
540508a2be
Fix memory leaks by closing streams
2025-07-23 05:43:50 -04:00
Kam
b60d6f8eb5
Fix Logging
2025-07-23 05:13:11 -04:00
Kam
e73e785fbf
feat: allow scripts to modify anvil cost
2025-07-09 22:43:06 -04:00
Kam
2cd06193c2
Fix Outline
2025-07-09 22:26:25 -04:00
Kam
d05e28918d
Revert recipe overlay to achievement banner
2025-07-09 21:35:34 -04:00
Kam
62e11d8caa
Show recipe banner with overlay
2025-07-09 21:35:27 -04:00
Kam
1585aa8e55
Sync recipe result pickup flag
2025-07-09 18:34:38 -04:00
Kam
01e9122700
Add message banner support for recipe pre-events
2025-07-09 18:17:32 -04:00