mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2024-11-21 11:26:13 +01:00
Fix check-metadata option
This commit is contained in:
parent
b0c6161f84
commit
29618e90ea
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user