Skip to content

Commit

Permalink
Fixed a bug where admin shops would show the "Not enough stock" error…
Browse files Browse the repository at this point in the history
… message
  • Loading branch information
Sven65 committed Mar 2, 2021
1 parent c001588 commit 304a291
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion modules/1_10_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_11_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_12_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_13_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_13_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_14_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_15_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_16_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_16_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_16_R3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_8_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_8_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_8_R3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_9_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/1_9_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/Dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion modules/Plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<artifactId>Slabbo-parent</artifactId>
<groupId>xyz.mackan</groupId>
<version>1.0.22</version>
<version>1.0.23</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void handleBuy (HumanEntity humanEntity) {
return;
}

if (shop.stock < shop.quantity) {
if (shop.stock < shop.quantity && !shop.admin) {
humanEntity.sendMessage(ChatColor.RED+LocaleManager.getString("error-message.shop-errors.not-enough-stock"));
((Player) humanEntity).playSound(shop.location, slabboSound.getSoundByKey("BLOCKED"), 1, 1);
return;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>xyz.mackan</groupId>
<artifactId>Slabbo-parent</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<packaging>pom</packaging>
<name>Slabbo</name>

Expand Down

0 comments on commit 304a291

Please sign in to comment.