Commit Graph
85 Commits
Author SHA1 Message Date
KAMKEEL 67ddaaab6f Keep entity hash consistent with equals, and campfire interaction handled
ScriptEntity.hashCode included tempData while equals compares only the entity,
so two wrappers of the same entity hashed differently - and tempData is mutable
and swapped wholesale by copyTempData, so an entry's hash could change while it
sat in a map.

BlockCampfire.onBlockActivated went from returning true to false, which lets the
held item be used or placed on top of the interaction. Restored.
2026-08-11 06:29:18 -04:00
KAMKEEL 22a8ef5036 Merge branch 'dev' into pr-254
# Conflicts:
#	src/main/java/noppes/npcs/client/gui/GuiNpcMobSpawnerSelector.java
2026-08-11 06:29:18 -04:00
zeng-github01 b8d68f771f refactor: disable auto-open GUI for BlockBorder and BlockNpcRedstone
- Removed auto-open GUI logic upon placing BlockBorder and BlockNpcRedstone.
- Resolved a race condition where the GUI would open before NBT/Permission data was fully synced from the server, causing "Permission Denied" or empty states.
- Fixed a logic bug in SubGuiNpcAvailabilityDialog where 'questId' was incorrectly used instead of 'dialogId' when opening the selection picker.
- This change ensures better UX as manual interaction guarantees all data is properly initialized.
2026-04-02 08:58:09 +08:00
Kam 12cf4b9a85 Revert Script Token 2026-03-04 20:45:33 -05:00
Kam 7df1cfbfb9 Script Token Handling 2026-03-03 01:58:45 -05:00
Kam 1de1c4e710 Reformat Code 2026-02-18 05:13:51 -05:00
Mark 66afe80c3c play swing animation only on success 2026-01-31 18:38:58 +03:00
Kam 9cbd9fd3eb Fix Block Waypoint 2026-01-23 01:41:57 -05:00
Kam a9b602713c Large Cleanup to Code Imports and Formatting 2026-01-22 23:07:38 -05:00
Kam 19b01e2099 Compress Script Hooks and Context System 2026-01-22 14:27:48 -05:00
bigguy345 50e9f1b3e5 HUGE IScriptHandlerPacket merge.
All ScriptHandlers that send packets now directly define their data through the ScriptHandler class itself, NOT through their own GuiScript extended class.
2026-01-22 20:05:07 +02:00
bigguy345 cda43fe67a Defaulted IScriptHandler methods to clean up duplicate code across implementations 2026-01-18 03:05:02 +02:00
bigguy345 cc0959dcfe Added run(EnumScriptType, Event) and
run(String, Event) methods to IScriptUnit interface, with JaninoScript
delegating to callByHookType(). This provides a cleaner abstraction that
supports both ScriptContainer and JaninoScript without type checking.

Affected files:
- IScriptUnit: Added run() methods to interface
- JaninoScript: Implemented run() delegation methods
- DataScript, PlayerDataScript, GlobalNPCDataScript, ForgeDataScript
- EffectScript, LinkedItemScript, RecipeScript
- ScriptCustomItem, TileScripted: Refactored to use polymorphic calls
2026-01-14 00:16:58 +02:00
bigguy345 c3e032dcf2 Abstracted ScriptContainer & JaninoScript to IScriptUnit + global implementation 2026-01-13 18:25:28 +02:00
Kam 88f48c6f94 Fix ClassCastException when interacting with hanging signs 2025-08-26 04:09:51 -04:00
Kam 9c541999f3 Optimize Imports 2025-07-23 14:22:52 -04:00
Kam b86c1ceabb Fix Couch Rendering 2025-06-01 23:46:51 -04:00
Kam cc148c02d7 Convert all getPlayerData() to PlayerData.get() 2025-04-08 22:48:32 -04:00
Kam 180d257024 Proper Reformating 2025-03-13 17:14:45 -04:00
Kam e85c4c9259 Banner Modifies Banner Trims 2025-03-10 17:28:24 -04:00
Kam eda6b72058 Chair + Hammer Pushing Functionality 2025-03-09 20:02:24 -04:00
Kam 08a18a123e Campfire Item 2D Texture 2025-03-09 19:06:47 -04:00
Kam c3538836be Optimize Imports 2025-02-20 21:40:39 -05:00
Kam a2d4c4fd5a Custom Item NBT Renderers for TileColorable for Block Picking its NBT Colors 2025-02-15 23:54:03 -05:00
Kam 1ca70be090 Short Lmap Bounds 2025-02-15 17:26:59 -05:00
Kam 114d9d0941 Fix Short Lamp 2025-02-15 17:19:22 -05:00
Kam c94f928f5e Brush Color Tag 2025-02-15 17:14:40 -05:00
Kam def6f60553 Fix Signs 2025-02-14 17:00:22 -05:00
Kam 6193f77bf5 Brush Setting and Getting Packets 2025-02-13 17:40:16 -05:00
Kam 4b8e0cd8c3 Brush Color Setting and Changing Interaction 2025-02-13 15:35:45 -05:00
Kam bd2eb0fe16 Fix Some Types and isColorTile simpler 2025-02-13 14:06:00 -05:00
Kam 16d838d6eb Fix Tall Lamps 2025-02-13 03:38:22 -05:00
Kam 8547c21474 Fix Lamps 2025-02-13 03:30:04 -05:00
Kam 3a00d08304 Hex Color Update 2025-02-13 03:12:46 -05:00
Kam 3c610e7105 Rename to Banner Trim 2025-02-13 02:14:07 -05:00
Kam 0dfcae05f4 Updated Tall Lamp + New Short Lamp 2025-02-12 21:44:14 -05:00
Kam 6d61c64cb6 Fix Anvil Lighting 2025-02-12 21:06:01 -05:00
Kam 936a56ddcb Completed Anvil Model 2025-02-12 20:35:46 -05:00
Kam f00948ebdc Fix Table Lighting 2025-02-12 18:19:45 -05:00
Kam 5dd260bb42 Anvil Model + Push Attributes 2025-02-12 17:39:33 -05:00
Kam 4905b9400a Complete Candle Texture + Lantern 2D Texture 2025-02-12 16:46:42 -05:00
Kam 0a04560243 Complete Couch Model 2025-02-12 15:41:47 -05:00
Kam 5d4088b9d1 Lantern Model + Texture 2025-02-12 02:34:05 -05:00
Kam 9cda5503ed Anvil Recipes Beginning 2025-02-09 20:49:45 -05:00
Kam 4f52e2674b Fix Campfire Bug 2025-02-04 02:19:51 -05:00
Kam 68404d353f more Data packet 2025-01-30 13:54:55 -05:00
Kam db2144116f Reorg -- Data Packets designed to send to Client 2025-01-30 13:54:49 -05:00
Kam db7473fd57 Delete more 2025-01-30 12:45:10 -05:00
Kam e042b2cfac EnumPacketClient Deleted 2025-01-30 12:45:06 -05:00
Kam 43b0e7c23b More Reworking 2025-01-30 12:16:16 -05:00