mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-13 00:37:32 +00:00
Fix ZenGetter and ZenSetter annotations
Before this commit, ZenGetter and ZenSetter in ZenExpansion could not be defined. Since ZenExpansion requires static methods to work, but the getters and setters will be invoked as virtual.
This commit is contained in:
1 parent
bd55380b5a
commit
941b32c8be
1 file changed
+2
-2
@@ -77,12 +77,12 @@ public class ZenExpandMember {
|
||||
|
||||
@Override
|
||||
public Expression eval(IEnvironmentGlobal environment) {
|
||||
return new ExpressionCallVirtual(position, environment, getter, value.eval(environment));
|
||||
return new ExpressionCallStatic(position, environment, getter, value.eval(environment));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Expression assign(ZenPosition position, IEnvironmentGlobal environment, Expression other) {
|
||||
return new ExpressionCallVirtual(position, environment, setter, value.eval(environment), other);
|
||||
return new ExpressionCallStatic(position, environment, setter, value.eval(environment), other);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user