Fix FightServer.kt and VelocityServer.kt @get:Optional annotations complaining about primitive types of field

This commit is contained in:
2026-07-17 16:40:38 +02:00
parent d84ca3547a
commit 95119fc93f
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -25,15 +25,15 @@ open class FightServer : DevServer() {
@get:Input @get:Input
@get:Optional @get:Optional
var checkSchemID: Int = 0 var checkSchemID: Int? = 0
@get:Input @get:Input
@get:Optional @get:Optional
var prepareSchemID: Int = 0 var prepareSchemID: Int? = 0
@get:Input @get:Input
@get:Optional @get:Optional
var replay: Int = 0 var replay: Int? = 0
@get:Input @get:Input
@get:Optional @get:Optional
@@ -42,7 +42,7 @@ open class FightServer : DevServer() {
// Property: fightID // Property: fightID
@get:Input @get:Input
@get:Optional @get:Optional
var eventKampfID: Int = 0 var eventKampfID: Int? = 0
@get:Input @get:Input
@get:Optional @get:Optional
+2 -2
View File
@@ -24,11 +24,11 @@ open class VelocityServer : DevServer() {
@get:Input @get:Input
@get:Optional @get:Optional
var packetDecodeLogging: Boolean = false var packetDecodeLogging: Boolean? = false
init { init {
doFirst { doFirst {
if (packetDecodeLogging) dParams.put("velocity.packet-decode-logging", "true") if (packetDecodeLogging == true) dParams.put("velocity.packet-decode-logging", "true")
} }
} }
} }