Skip to content

Commit

Permalink
bug: Fixed autocannon round duplication glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
rbasamoyai committed Dec 4, 2024
1 parent 8cbfa82 commit a85e4be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Create Big Cannon 5.7.0. Now supports Create 0.5.1 patch J on Forge/NeoForge and
Only 1.20.1 is supported, as Create 0.5.1.j only supports that version. Mod versions on Minecraft 1.18.2 and 1.19.2 will no longer receive support.

Fixed:
- Updated GoggleOverlayRenderMixin (Fabric)
- Fixed autocannon round duplication glitch

5.6.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public NonNullList<ItemStack> getRemainingItems(CraftingContainer container) {
if (stack.getOrCreateTag().contains("Fuze", Tag.TAG_COMPOUND)) {
ItemStack copy = stack.copy();
copy.getOrCreateTag().remove("Fuze");
copy.setCount(1);
result.set(i, copy);
}
break;
Expand All @@ -82,6 +83,7 @@ public NonNullList<ItemStack> getRemainingItems(CraftingContainer container) {
if (cartridgeRound.getItem() instanceof FuzedItemMunition && cartridgeRound.getOrCreateTag().contains("Fuze", Tag.TAG_COMPOUND)) {
ItemStack copyRound = cartridgeRound.copy();
copyRound.getOrCreateTag().remove("Fuze");
copyRound.setCount(1);
ItemStack newStack = new ItemStack(stack.getItem());
AutocannonCartridgeItem.writeProjectile(copyRound, newStack);
result.set(i, newStack);
Expand Down

0 comments on commit a85e4be

Please sign in to comment.