Skip to content

Commit 6fc884e

Browse files
committed
Fix equipment ge value overflow
1 parent b902fd0 commit 6fc884e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/botdetector/BotDetectorPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ private void processPlayer(Player player)
669669

670670
// Get player's equipment item ids (botanicvelious/Equipment-Inspector)
671671
Map<KitType, Integer> equipment = new HashMap<>();
672-
int geValue = 0;
672+
long geValue = 0;
673673
for (KitType kitType : KitType.values())
674674
{
675675
int itemId = player.getPlayerComposition().getEquipmentId(kitType);

src/main/java/com/botdetector/model/PlayerSighting.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class PlayerSighting
5555
Map<KitType, Integer> equipment;
5656

5757
@SerializedName("equipment_ge")
58-
int equipmentGEValue;
58+
long equipmentGEValue;
5959

6060
@SerializedName("world_number")
6161
int worldNumber;

0 commit comments

Comments
 (0)