修改hasCreativeAmmo判定条件

This commit is contained in:
Light_Quanta 2025-04-14 23:09:47 +08:00
parent 61c8c3337c
commit 25f205a78d
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -39,7 +39,7 @@ public class AmmoBarOverlay implements LayeredDraw.Layer {
private static boolean hasCreativeAmmo() {
Player player = Minecraft.getInstance().player;
if (player == null) return false;
return InventoryTool.hasCreativeAmmoBox(player);
return player.isCreative() || InventoryTool.hasCreativeAmmoBox(player);
}
private static int getGunAmmoCount(Player player) {