Small Bug Fix

Fixed Bug where Players couldn't move Items in Chests
This commit is contained in:
LikeWhat 2019-09-21 17:33:20 +02:00
parent 122f44d739
commit 136f141c25
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>de.mrstein.customheads</groupId>
<artifactId>CustomHeads</artifactId>
<version>2.9.7</version>
<version>2.9.8</version>
<packaging>jar</packaging>
<properties>

View File

@ -147,7 +147,7 @@ public class TagEditor {
Object copy = getAsMNSCopy(item);
Object itemCompound = copy.getClass().getMethod("getTag").invoke(copy);
Object tagCompound = itemCompound.getClass().getMethod("getCompound", String.class).invoke(itemCompound, "tagEditor");
return tagCompound != null && tagCompound.getClass().getMethod("getList", String.class, int.class).invoke(tagCompound, tagname, 8) != null;
return tagCompound != null && (boolean) tagCompound.getClass().getMethod("hasKey", String.class).invoke(tagCompound, tagname);
} catch (Exception e) {
}
return false;