mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-25 08:11:20 +01:00
Speed up SignBreak
This commit is contained in:
parent
e5953cd740
commit
118f72e805
@ -53,9 +53,7 @@ public class SignBreak implements Listener {
|
|||||||
Block attachedBlock = BlockUtil.getAttachedBlock(sign);
|
Block attachedBlock = BlockUtil.getAttachedBlock(sign);
|
||||||
|
|
||||||
if (attachedBlock.getType() == Material.AIR && ChestShopSign.isValid(sign)) {
|
if (attachedBlock.getType() == Material.AIR && ChestShopSign.isValid(sign)) {
|
||||||
List <MetadataValue> values = block.getMetadata(METADATA_NAME);
|
if (!block.hasMetadata(METADATA_NAME)) {
|
||||||
|
|
||||||
if (values.isEmpty()) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user