Skip to content

Commit

Permalink
Fix default colors for beacon beams not being applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytm committed Oct 23, 2023
1 parent ddca1d8 commit d9b8ea5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
- The default config has been updated to replace some items with custom player heads
- Holograms are now multiline by default

### Fixed
- Default colors for beacon beams are not applied

## 4.2.0

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ import de.md5lukas.konfig.Configurable
import de.md5lukas.konfig.TypeAdapter
import de.md5lukas.konfig.UseAdapter
import de.md5lukas.waypoints.api.Type
import de.md5lukas.waypoints.api.Waypoint
import de.md5lukas.waypoints.pointers.BeaconColor
import de.md5lukas.waypoints.pointers.PlayerTrackable
import de.md5lukas.waypoints.pointers.TemporaryWaypointTrackable
import de.md5lukas.waypoints.pointers.Trackable
import de.md5lukas.waypoints.pointers.*
import de.md5lukas.waypoints.pointers.config.BeaconConfiguration
import org.bukkit.Bukkit
import org.bukkit.Material
Expand Down Expand Up @@ -44,7 +40,7 @@ class BeaconConfigurationImpl : RepeatingPointerConfigurationImpl(), BeaconConfi

override fun getDefaultColor(trackable: Trackable) =
when (trackable) {
is Waypoint -> defaultColor[trackable.type]
is WaypointTrackable -> defaultColor[trackable.waypoint.type]
is PlayerTrackable -> playerTrackableColor
is TemporaryWaypointTrackable -> temporaryTrackableColor
else -> null
Expand Down

0 comments on commit d9b8ea5

Please sign in to comment.