Skip to content

Commit

Permalink
Fix zots skipping the first charge
Browse files Browse the repository at this point in the history
  • Loading branch information
Sfiguz7 committed Mar 30, 2024
1 parent a66f1e7 commit 6eb86a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void tick(Block b, SlimefunItem sf, Config data) {
int requiredCharge = TranscEndence.getInstance().getZotRequiredCharge();
NamespacedKey chargeKey = new NamespacedKey(TranscEndence.getInstance(), "charge");
ItemMeta zotMeta = zot.getItemMeta();
int zotCharge = PersistentDataAPI.getInt(zotMeta, chargeKey);
int zotCharge = Math.max(PersistentDataAPI.getInt(zotMeta, chargeKey),0);

if (zotCharge >= requiredCharge) {
return;
Expand Down

0 comments on commit 6eb86a9

Please sign in to comment.