mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-26 18:39:44 -05:00
Fast divide
Former-commit-id: 732e3c5d05cf6ba8d9d5ab55a3e07529a7a4e8b5
This commit is contained in:
1 parent
4ee905cf28
commit
8d03f64371
1 file changed
+2
-3
@@ -38,7 +38,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.maxgamer.quickshop.QuickShop;
|
||||
import org.maxgamer.quickshop.event.*;
|
||||
import org.maxgamer.quickshop.util.CalculateUtil;
|
||||
import org.maxgamer.quickshop.util.MsgUtil;
|
||||
import org.maxgamer.quickshop.util.Util;
|
||||
|
||||
@@ -560,7 +559,7 @@ public class ContainerShop implements Shop {
|
||||
lines[1] = MsgUtil.getMessageOfflinePlayer("signs.stack-selling", player, "" + MsgUtil.getMessageOfflinePlayer("signs.unlimited", player));
|
||||
} else {
|
||||
lines[1] =
|
||||
MsgUtil.getMessageOfflinePlayer("signs.stack-selling", player, "" + ((this.getRemainingStock() != 0) ? (int)CalculateUtil.divide(this.getRemainingStock(), this.getItem().getAmount()) : 0));
|
||||
MsgUtil.getMessageOfflinePlayer("signs.stack-selling", player, "" + ((this.getRemainingStock() != 0) ? (int)this.getRemainingStock()/this.getItem().getAmount() : 0));
|
||||
}
|
||||
} else {
|
||||
if (this.getRemainingStock() == -1) {
|
||||
@@ -578,7 +577,7 @@ public class ContainerShop implements Shop {
|
||||
lines[1] = MsgUtil.getMessageOfflinePlayer("signs.stack-buying", player, "" + MsgUtil.getMessageOfflinePlayer("signs.unlimited", player));
|
||||
} else {
|
||||
lines[1] =
|
||||
MsgUtil.getMessageOfflinePlayer("signs.stack-buying", player, "" + ((this.getRemainingSpace() != 0) ? (int)CalculateUtil.divide(this.getRemainingSpace(), this.getItem().getAmount()) : 0));
|
||||
MsgUtil.getMessageOfflinePlayer("signs.stack-buying", player, "" + ((this.getRemainingSpace() != 0) ? (int)this.getRemainingSpace()/this.getItem().getAmount() : 0));
|
||||
}
|
||||
} else {
|
||||
if (this.getRemainingSpace() == -1) {
|
||||
|
||||
Reference in new issue
Block a user