Fix chunk listener detection

This commit is contained in:
Jesse Boyd 2018-04-18 18:00:21 +10:00
parent 124cc02350
commit 3182441e66
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
1 changed files with 2 additions and 2 deletions

View File

@ -237,8 +237,8 @@ public abstract class ChunkListener implements Listener {
StackTraceElement elem = getElement(e, frame);
if (elem != null) {
String methodName = elem.getMethodName();
// setAir (hacky, but this needs to be efficient)
if (methodName.charAt(0) == 's' && methodName.length() == 6) {
// setAir | setTypeAndData (hacky, but this needs to be efficient)
if (methodName.charAt(0) == 's' && methodName.length() == 6 || methodName.length() == 14) {
return true;
}
}