Skip to content

Releases: otectus/DangerousStructures

v1.1.1 — Bug Fixes, Performance, and Code Quality

26 Mar 05:30

Choose a tag to compare

Bug Fixes

  • Fixed double armor and fire resistance application on periodic spawns
  • Fixed elite mobs always persisting regardless of persistentMobs config
  • Fixed /ds info displaying "128 block range" when the actual search radius is 64 blocks
  • Fixed /ds debug toggle reverting silently on config reload

Performance

  • Optimized entity counting — no longer fetches items, XP orbs, and arrows just to count monsters
  • Switched /ds list deduplication to O(1) lookup
  • Increased pack spawn floor-finding retries from 4 to 8

Config Changes

  • Breaking: Renamed sunlightImmunity to fireImmunity — existing configs with sunlightImmunity = false will need to re-set fireImmunity = false
  • Added documentation for useVanillaSpawnWeights + dimensionSpecificMobs dependency
  • Added documentation for initial population ignoring minPlayerDistance

New Features

  • Added /ds validate command — re-runs config validation and reports issues in chat
  • Added debug logging for periodic spawn position failures

Code Quality

  • Decomposed TickSpawnHandler (819 → 595 lines) into SpawnPositionFinder, MobSelector, MobEnhancer
  • Extracted magic numbers to named constants
  • Added JUnit 5 unit tests
  • Thread-safe populatedStructures set
  • Unmodifiable API internal set

Full changelog: CHANGELOG.md