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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user