Use more exact shop detection with /shopinfo

This commit is contained in:
Phoenix616 2021-06-13 15:48:04 +01:00
parent 63f68d5444
commit df2e4394c4
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ import org.bukkit.entity.Player;
public class ShopInfo implements CommandExecutor {
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (sender instanceof Player) {
Block target = ((Player) sender).getTargetBlock(5);
Block target = ((Player) sender).getTargetBlockExact(5);
if (target != null) {
Sign sign = null;
if (ChestShopSign.isValid(target)) {