PeTcHeNkA
6e2fe788d2
Improve readability in getEntityTexture#RenderNPCInterface
2025-12-24 03:50:03 +03:00
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
8efa1d354d
Commit New Java Doc
2025-10-28 02:05:17 -04: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
1e7ee84098
Reset player sync state when client has no cache
2025-10-21 02:36:34 -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
0c42fb8128
Simplify sync debug logging and server identity key
2025-10-19 22:19: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
e49e380ff7
Merge pull request #216 from KAMKEEL/codex/fix-quest-item-requirement-validation
...
Fix item quest completion for duplicate item requirements
2025-10-15 06:18:01 -04:00
Kam
7da4b276a5
Fix item quest requirements counting per stack
2025-10-15 06:17:48 -04:00
Kam
7e4d0e48bb
Fix follower packet role check
2025-10-15 06:16:04 -04:00
Kam
45cae9b064
Harden slot switching against stale saves
2025-10-12 20:38:02 -04:00
Kam
460a1c5ef9
Fix profile slot change data overwrite race
2025-10-12 20:31:46 -04:00
Kam
c767c4714d
Merge pull request #211 from KAMKEEL/codex/explain-cnpc+-party-loading-issue
...
Enforce server-side checks on party packets
2025-10-06 20:35:04 -04:00
Kam
d9b5aa6b3d
Guard party packets server-side
2025-10-06 20:34:53 -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
82e97935d9
fix: preserve profile data on relog
2025-08-28 22:18:16 -04:00
Kam
88b5be2f25
Update ProfileController.java
2025-08-28 22:01:24 -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
32c2d89f42
Fix region saving delimiter
2025-07-23 23:48:01 -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