Skip to content
This repository was archived by the owner on Nov 8, 2021. It is now read-only.

Commit 0db15aa

Browse files
committed
NMSField type -> value, for better looking annotations
1 parent 750f1cb commit 0db15aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/me/theminecoder/minecraft/nmsproxy/annotations/NMSField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public enum Type {
1717
SETTER
1818
}
1919

20-
Type type();
20+
Type value();
2121

2222
NMSVersionName[] versionNames() default {};
2323

src/main/java/me/theminecoder/minecraft/nmsproxy/proxy/NMSProxyInvocationHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
8989
Field field = invocationMapper.findNMSField((Class<? extends NMSProxy>) proxy.getClass().getInterfaces()[0], method, fieldAnnotation);
9090

9191
Object invokerObject = method.getAnnotation(NMSStatic.class) != null ? null : handle;
92-
if (fieldAnnotation.type() == NMSField.Type.GETTER) {
92+
if (fieldAnnotation.value() == NMSField.Type.GETTER) {
9393
if (args != null && args.length != 0) {
9494
throw new IllegalArgumentException("Must have 0 arguments on proxy method!");
9595
}

0 commit comments

Comments
 (0)