don't run if no key is found

This commit is contained in:
Ryder Belserion 2024-10-31 12:04:35 -04:00
parent 78c98d3c91
commit 0cf673b630
No known key found for this signature in database

View File

@ -216,6 +216,10 @@ public class ExpiredMenu extends Holder {
}
}
if (!container.has(Keys.auction_store_id.getNamespacedKey())) { // do not run, if there is no key.
return;
}
if (Methods.isInvFull(player)) { // run this here obviously as well
player.sendMessage(Messages.INVENTORY_FULL.getMessage(player));