Skip to content

Commit 8054c92

Browse files
committed
Fix abstract method errors with IMixinCastingContext
1 parent 1a0efdf commit 8054c92

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

Common/src/main/kotlin/gay/object/hexdebug/casting/eval/IMixinCastingContext.kt

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,23 @@ import net.minecraft.network.chat.Component
77
import net.minecraft.server.level.ServerPlayer
88
import org.eclipse.lsp4j.debug.OutputEventArgumentsCategory
99

10-
@Suppress("PropertyName", "FunctionName")
10+
@Suppress("PropertyName")
1111
interface IMixinCastingContext {
1212
var `isDebugging$hexdebug`: Boolean
13-
1413
var `lastEvaluatedAction$hexdebug`: Action?
1514
var `lastDebugStepType$hexdebug`: DebugStepType?
15+
}
1616

17-
fun `reset$hexdebug`() {
18-
`lastEvaluatedAction$hexdebug` = null
19-
`lastDebugStepType$hexdebug` = null
20-
}
17+
fun IMixinCastingContext.reset() {
18+
`lastEvaluatedAction$hexdebug` = null
19+
`lastDebugStepType$hexdebug` = null
20+
}
2121

22-
fun `printDebugMessage$hexdebug`(
23-
caster: ServerPlayer,
24-
message: Component,
25-
category: String = OutputEventArgumentsCategory.STDOUT,
26-
withSource: Boolean = true,
27-
) {
28-
DebugAdapterManager[caster]?.print(message.string + "\n", category, withSource)
29-
}
22+
fun printDebugMessage(
23+
caster: ServerPlayer,
24+
message: Component,
25+
category: String = OutputEventArgumentsCategory.STDOUT,
26+
withSource: Boolean = true,
27+
) {
28+
DebugAdapterManager[caster]?.print(message.string + "\n", category, withSource)
3029
}

Common/src/main/kotlin/gay/object/hexdebug/debugger/HexDebugger.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ class HexDebugger(
402402
val info = CastingHarness.TempControllerInfo(earlyExit = false)
403403
var sound = HexEvalSounds.NOTHING
404404
while (continuation is NotDone && !info.earlyExit) {
405-
debugCastEnv.`reset$hexdebug`()
405+
debugCastEnv.reset()
406406

407407
// Take the top of the continuation stack...
408408
val frame = continuation.frame

0 commit comments

Comments
 (0)