mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-21 12:32:29 +00:00
- Fixed some wrongs in data matching, causing crashes with onlyWithTag in some cases
- Fixed a variable check when resolving variables
This commit is contained in:
1 parent
f20af21fef
commit
59ef38877f
15 files changed
+119
-44
No files matched your search
@@ -57,22 +57,22 @@ public class DataByte implements IData {
|
||||
|
||||
@Override
|
||||
public List<IData> asList() {
|
||||
throw new UnsupportedOperationException("Cannot convert a byte to a list");
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, IData> asMap() {
|
||||
throw new UnsupportedOperationException("Cannot convert a byte to a map");
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] asByteArray() {
|
||||
throw new RuntimeException("Cannot cast a byte to a byte array");
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] asIntArray() {
|
||||
throw new RuntimeException("Cannot cast a byte to an int array");
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user