Skip to content

Commit

Permalink
Wall blocks are 1.16+ only
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 17, 2021
1 parent 5da1a24 commit cce800a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -151,7 +151,9 @@ public static void registermainProperties() {
PropertyParser.registerProperty(MaterialDrags.class, MaterialTag.class);
PropertyParser.registerProperty(MaterialFaces.class, MaterialTag.class);
PropertyParser.registerProperty(MaterialHalf.class, MaterialTag.class);
PropertyParser.registerProperty(MaterialHeights.class, MaterialTag.class);
if (NMSHandler.getVersion().isAtLeast(NMSVersion.v1_16)) {
PropertyParser.registerProperty(MaterialHeights.class, MaterialTag.class);
}
PropertyParser.registerProperty(MaterialHinge.class, MaterialTag.class);
PropertyParser.registerProperty(MaterialInstrument.class, MaterialTag.class);
PropertyParser.registerProperty(MaterialLocked.class, MaterialTag.class);
Expand Down
Expand Up @@ -131,6 +131,7 @@ public ObjectTag getObjectAttribute(Attribute attribute) {
// @group properties
// @description
// Returns a map of enchantments on the item.
// Map keys are enchantment names (like "sharpness"), and values are the level (as a number).
// -->
if (attribute.startsWith("enchantment_map")) {
return getEnchantmentMap().getObjectAttribute(attribute.fulfill(1));
Expand Down

0 comments on commit cce800a

Please sign in to comment.