mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 17:22:10 +00:00
Add new internal interface for token provider
This commit is contained in:
1 parent
7434e54b60
commit
f66760a5bf
3 files changed
+46
-3
No files matched your search
@@ -28,7 +28,6 @@ import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.spongepowered.asm.lib.tree.AnnotationNode;
|
||||
import org.spongepowered.asm.mixin.MixinEnvironment;
|
||||
|
||||
|
||||
/**
|
||||
@@ -220,7 +219,7 @@ public final class ConstraintParser {
|
||||
return this.max;
|
||||
}
|
||||
|
||||
public void check(MixinEnvironment environment) throws ConstraintViolationException {
|
||||
public void check(ITokenProvider environment) throws ConstraintViolationException {
|
||||
if (this != Constraint.NONE) {
|
||||
Integer value = environment.getToken(this.token);
|
||||
if (value == null) {
|
||||
|
||||
Reference in new issue
Block a user