mirror of
https://github.com/IHasName/CustomHeads.git
synced 2025-02-17 19:21:28 +01:00
Small Bug Fix
Fixed Bug where Players couldn't move Items in Chests
This commit is contained in:
parent
122f44d739
commit
136f141c25
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user