mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-08 19:51:05 +00:00
Improved illogical condition whether buying/selling is enabled
This commit is contained in:
parent
c9a63c7cbb
commit
94011c997d
@ -273,7 +273,8 @@ class ShopCommand extends BukkitCommand {
|
||||
|
||||
plugin.debug(p.getName() + " has entered the numbers correctly (according to allow-decimals configuration)");
|
||||
|
||||
boolean buyEnabled = !(buyPrice <= 0), sellEnabled = !(sellPrice <= 0);
|
||||
boolean buyEnabled = buyPrice > 0;
|
||||
boolean sellEnabled = sellPrice > 0;
|
||||
|
||||
if (!buyEnabled && !sellEnabled) {
|
||||
p.sendMessage(LanguageUtils.getMessage(LocalizedMessage.Message.BUY_SELL_DISABLED));
|
||||
|
Loading…
Reference in New Issue
Block a user