1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-23 18:07: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

@@ -71,7 +71,7 @@ public class GenericPeripheralProvider {
// If we have a peripheral type, use it. Always pick the smallest one, so it's consistent (assuming mods
// don't change).
var type = method.getGenericType();
var type = method.genericType();
if (type != null && type.getPrimaryType() != null) {
var name = type.getPrimaryType();
if (this.name == null || this.name.compareTo(name) > 0) this.name = name;