File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/cryptomorin/xseries Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1742,8 +1742,8 @@ public static XMaterial matchXMaterial(@Nonnull ItemStack item) {
17421742 String material = item .getType ().name ();
17431743 byte data = (byte ) (Data .ISFLAT || item .getType ().getMaxDurability () > 0 ? 0 : item .getDurability ());
17441744
1745- // They didn't really use the items data value in older versions .
1746- if (!Data .ISFLAT && item .hasItemMeta () && material .equals ("MONSTER_EGG" )) {
1745+ // Versions 1.9-1.12 didn't really use the items data value.
1746+ if (!Data .ISFLAT && item .hasItemMeta () && material .equals ("MONSTER_EGG" ) && supports ( 9 ) ) {
17471747 ItemMeta meta = item .getItemMeta ();
17481748 if (meta instanceof SpawnEggMeta ) {
17491749 SpawnEggMeta egg = (SpawnEggMeta ) meta ;
You can’t perform that action at this time.
0 commit comments