Update GameModeExtensions.kt

This commit is contained in:
bluefireoly
2020-08-28 13:02:24 +02:00
parent 10590ab5b9
commit c8013e1d47

View File

@@ -4,8 +4,6 @@ import org.bukkit.GameMode
val GameMode.isDamageable: Boolean
get() = when (this) {
GameMode.SURVIVAL -> true
GameMode.ADVENTURE -> true
GameMode.SPECTATOR -> false
GameMode.CREATIVE -> false
GameMode.SURVIVAL, GameMode.ADVENTURE -> true
GameMode.SPECTATOR, GameMode.CREATIVE -> false
}