4681 Commits
Author SHA1 Message Date
bigguy345 1c3a11d433 Fixed parameters not highlighting for constructors 2026-01-03 01:29:15 +02:00
bigguy345 b6f69dbe8c Fixed constructors buggin (is already defined in scope for all single constructors) 2026-01-02 22:46:16 +02:00
bigguy345 791cb3ddc1 Provided correct metadata for enum constant marks 2026-01-02 22:38:03 +02:00
bigguy345 4f00870b9b Improved marking logic of ALL variables in all scopes 2026-01-02 22:37:36 +02:00
bigguy345 5be3d934b7 Marked global variables for script types 2026-01-02 22:08:53 +02:00
bigguy345 e3228632a3 oops forgor 2026-01-02 21:55:18 +02:00
bigguy345 9a575919b4 Refined FieldChainMarker 2026-01-02 21:55:04 +02:00
bigguy345 4e0c5e91da Cleaned up markChainedAccessFields heavily 2026-01-02 21:24:45 +02:00
bigguy345 fbbd53d5ff Removed unneeded enum constructor creation 2026-01-02 20:56:47 +02:00
bigguy345 5e13f580bb Removed token EnumConstantInfo as no longer needed 2026-01-02 20:38:50 +02:00
bigguy345 ca11c3c9f6 Added script enums to ScriptType's field pool 2026-01-02 20:38:18 +02:00
bigguy345 5553ece3e6 Processed external/java class enums properly 2026-01-02 20:37:47 +02:00
bigguy345 fd160e980a Stored EnumConstantInfo in FieldInfo 2026-01-02 17:13:06 +02:00
bigguy345 369b346093 Removed if (getErrors().stream().anyMatch(err -> err.contains("Cannot resolve symbol 2026-01-02 16:46:07 +02:00
bigguy345 8d2d08b8cb Unified package name fetching across TokenHoverInfo extractors 2026-01-02 16:14:55 +02:00
bigguy345 aaaeaf4b19 Added hover info for enum constants 2026-01-02 16:11:49 +02:00
bigguy345 d3a1535a31 EnumConstantInfo as token metadata 2026-01-02 16:11:08 +02:00
bigguy345 75c5637aa7 Added FieldInfo initStart/initEnd for enum constants 2026-01-02 16:10:45 +02:00
bigguy345 96c243f6bf OOPS 2026-01-02 14:58:01 +02:00
bigguy345 58cac3667c Added ENUM CONSTANT parsing and validation 2026-01-02 14:57:45 +02:00
Claude f6114dfa5e Fix NPC biome spawn settings not persisting after editing
When users modified biomes, dimensions, or spawning options through the
sub-GUI dialogs, changes were only stored in client memory and never sent
to the server. This caused spawn configurations to appear correct in the
UI but fail to work after server restarts.

The closeSubGui() method now calls save() when SubGuiNpcBiomes,
SubGuiNpcDimensions, or SubGuiSpawningOptions dialogs close, ensuring
changes are immediately sent to the server via NaturalSpawnSavePacket.

Added @Override annotation for consistency with other GUI classes.
2026-01-02 09:50:28 +00:00
Kam 6cc78a62aa Merge branch 'claude/fix-bard-music-dialog-bug-Rm8DP' into dev 2026-01-02 00:09:38 -05:00
Kam cb0b18310a Merge remote-tracking branch 'origin/claude/fix-quest-cooldown-timer-hoXkh' into dev 2026-01-02 00:08:42 -05:00
Claude 1d191413fb Fix quest cooldown not working for MCCUSTOM and RLCUSTOM types
The canQuestBeAccepted() method was missing cases for MCCUSTOM and
RLCUSTOM repeat types, causing quests with custom cooldowns to become
permanently inaccessible after first completion. Added the missing
checks using quest.customCooldown for both MC ticks and real-life
milliseconds.
2026-01-02 03:58:52 +00:00
Claude f5deb8a823 Fix Bard music restarting/duplicating when opening dialogs
Two issues were causing the bug:
1. GuiDialogInteract.close() called stopAllSounds() unconditionally,
   which stopped Bard music even when the dialog had no sound or
   when a different Bard was playing nearby.

2. MusicController.stopMusic() didn't set playDelay, allowing Bards
   to immediately restart their music after dialog close.

Changes:
- MusicController.stopMusic() now sets playDelay=20 and clears entity
  reference to prevent immediate music restart
- Added MusicController.stopSound(key) to stop specific sounds
- Dialog GUIs now track their dialog sound and only stop that on close,
  preserving Bard music and other sounds
2026-01-02 03:54:19 +00:00
Kam 07a10b8414 Remove this 2026-01-01 22:35:32 -05:00
Kam e2291f8ccc Fix Debugging Error 2026-01-01 22:02:54 -05:00
Kam f19c53758e 1.10.3-beta 2026-01-01 21:47:17 -05:00
bigguy345 86da3f21e1 Added bold/italic rendering for TokenType 2026-01-01 14:39:41 +02:00
bigguy345 275a5f10c9 Retrieved true containing type of method calls in hover info (handled inheritance case) 2026-01-01 01:01:47 +02:00
bigguy345 7b77c1935f Added super() error validation 2025-12-31 23:36:44 +02:00
bigguy345 861cdcd533 Moved all inheritance code to ScriptTypeInfo 2025-12-31 21:15:18 +02:00
bigguy345 35af0bbd2d Got error validation working for ScriptTypeInfo 2025-12-31 20:42:40 +02:00
bigguy345 0caebb08ca Vastly improved GutterIconRenderer 2025-12-31 19:19:06 +02:00
bigguy345 71b4a6fdc4 Huge ScriptType extends/implements back-end 2025-12-31 18:53:28 +02:00
bigguy345 8e283b705c Removed unused code 2025-12-31 17:04:43 +02:00
bigguy345 dfec28ccc8 Switched method fetches to getAllMethods() 2025-12-31 17:02:24 +02:00
bigguy345 6cdb222b67 Added INTERFACE_METHOD_BODY error & improved logic 2025-12-31 16:53:38 +02:00
bigguy345 c97de07ef7 Added MISSING_BODY error for method declarations 2025-12-31 14:46:00 +02:00
bigguy345 20f1c7cb66 Detected duplicate methods for ScriptTypeInfo methods 2025-12-31 14:27:57 +02:00
bigguy345 002d2a6f15 Optimised ScriptType member detection 2025-12-31 14:25:47 +02:00
bigguy345 4ff47456b7 Detected bodyless Methods declared within interfaces/have abstract modifiers 2025-12-31 14:09:17 +02:00
bigguy345 6c0a2caa7e Quick re-organisation 2025-12-31 13:30:01 +02:00
Claude 9b654621e8 Add attack speed check to NPC's attackEntityFrom before immunity check
The LivingAttackEvent handler was firing too late for NPCs because
EntityNPCInterface.attackEntityFrom() has its own immunity check that
runs BEFORE calling super (which fires LivingAttackEvent).

Now the attack speed bypass is checked directly in the NPC's
attackEntityFrom() method, before the immunity check at line 658.
2025-12-31 01:00:33 +00:00
Claude d06e680350 Fix attack speed formula to check elapsed time properly
Instead of blindly resetting hurtResistantTime for fast weapons, now
checks if enough time has elapsed based on the weapon's attackSpeed:
- timeElapsed = maxHurtResistantTime - hurtResistantTime
- Allow attack when: hurtResistantTime <= maxHurtResistantTime - attackSpeed

Example: attackSpeed=10, maxHurtResistantTime=20
- Allows attack when hurtResistantTime <= 10 (10 ticks elapsed)
2025-12-31 00:52:06 +00:00
Claude 185a8bc917 Move hurt resistant time handling from LivingHurtEvent to LivingAttackEvent
- Remove legacy attack speed handling from ServerEventsHandler.LivingHurtEvent
  (was setting hurtResistantTime AFTER immunity check, too late)
- Add proper handling in ScriptPlayerEventHandler.LivingAttackEvent
  (sets hurtResistantTime=0 BEFORE immunity check for fast weapons)
- For weapons with attackSpeed < 20, bypass invincibility frames to allow
  rapid attacks to land
2025-12-31 00:45:26 +00:00
Kam ce8e38b6bd Update ScriptPlayerEventHandler.java 2025-12-30 19:41:02 -05:00
bigguy345 ef4438fcf4 Optimised scrolling animation variables to fix the line text's stuttering at the end of scroll ease out 2025-12-31 02:37:15 +02:00
bigguy345 8089a5eef0 Fully migrated to drawStringHex for Script Editor line rendering 2025-12-31 02:36:10 +02:00
Kam 592a910cbc Add some more Attack Speed Handling 2025-12-30 19:29:44 -05:00