mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Fix a sign header check issue
Former-commit-id: 9421d6112f212efdc9c8e7cf83637c487f4e24d7 [formerly c20a921f0ac220c09a4dfa71aae36e5d58151030] Former-commit-id: d17a5f750bccdc69f89879b07e1688aa43dd4db9
This commit is contained in:
1 parent
9acf6d9c87
commit
b786d2ce9c
1 file changed
+2
-1
@@ -539,13 +539,14 @@ public class ContainerShop implements Shop {
|
||||
blocks[2] = loc.getBlock().getRelative(0, 0, 1);
|
||||
blocks[3] = loc.getBlock().getRelative(0, 0, -1);
|
||||
final String signHeader = MsgUtil.getMessage("signs.header", "");
|
||||
final String signHeader2 = MsgUtil.getMessage("sign.header", this.ownerName());
|
||||
for (Block b : blocks) {
|
||||
if (b.getType() != Material.WALL_SIGN)
|
||||
continue;
|
||||
if (!isAttached(b))
|
||||
continue;
|
||||
Sign sign = (Sign) b.getState();
|
||||
if (sign.getLine(0).contains(signHeader)) {
|
||||
if (sign.getLine(0).contains(signHeader)||sign.getLine(0).contains(signHeader2)) {
|
||||
signs.add(sign);
|
||||
} else {
|
||||
boolean text = false;
|
||||
|
||||
Reference in new issue
Block a user