Fix check-metadata option

This commit is contained in:
Marcos Vives Del Sol 2014-06-04 14:27:36 +02:00
parent b0c6161f84
commit 29618e90ea

View File

@ -95,7 +95,7 @@ public abstract class ModifyworldListener implements Listener {
}
private String getMaterialPermission(Material type, byte metadata) {
return getMaterialPermission(type) + (metadata > 0 ? ":" + metadata : "");
return getMaterialPermission(type) + (checkMetadata && metadata > 0 ? ":" + metadata : "");
}
private String getBlockPermission(Block block) {