Skip to content

Commit

Permalink
Improve map property
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortifier42 committed Nov 26, 2015
1 parent 57fcd64 commit 6346723
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -72,7 +72,7 @@ public void adjust(Mechanism mechanism) {
// <i@item.map>
// -->

if (mechanism.matches("map")) {
if (mechanism.matches("map") && mechanism.requireInteger()) {
item.getItemStack().setDurability((short) (mechanism.getValue().asInt()));
}
}
Expand Down

0 comments on commit 6346723

Please sign in to comment.