1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-25 02:47:39 +00:00

Convert NamedMethod into a record

This commit is contained in:
Jonathan Coates
2023-06-26 18:51:14 +01:00
parent 50d460624f
commit 4a5e03c11a
8 changed files with 28 additions and 43 deletions

View File

@@ -19,8 +19,8 @@ final class SaturatedMethod {
SaturatedMethod(Object target, NamedMethod<PeripheralMethod> method) {
this.target = target;
name = method.getName();
this.method = method.getMethod();
name = method.name();
this.method = method.method();
}
MethodResult apply(ILuaContext context, IComputerAccess computer, IArguments args) throws LuaException {