Commit Graph
5 Commits
Author SHA1 Message Date
auto c8cb2309f6 Rename and enhance AttributeModifier
Renamed AttributeModifier to EntityAttributeModifier for clarity. Added Main dependency and improved attribute setting logic with namespaced keys for better error handling and debugging. Updated MobTypes to pass Main instance accordingly.
2024-10-18 22:59:47 +02:00
auto fb2bbb70d4 Expand spawn command syntax and improve tab completion
Updated the spawn command to require an additional <mob> argument. Enhanced the tab completion functionality to provide context-sensitive suggestions based on the number of arguments.
2024-10-18 20:11:37 +02:00
auto a8ac621f51 Fix default abilities list initialization
Previously, the default value for the abilities list was null, leading to potential NullPointerExceptions. This change initializes the default list as an empty list to prevent such errors.
2024-10-18 19:50:13 +02:00
auto dad2ce21e4 Add null check for configuration section in MobTypes
Ensure that the configuration section is not null before attempting to retrieve keys. This prevents potential null pointer exceptions and adds a warning log for missing configuration sections.
2024-10-18 19:43:06 +02:00
auto 5d843211c0 Initial commit 2024-10-18 17:49:49 +02:00