From e8bb9dea7b18729e9a12fbb35546d9b35bccfffa Mon Sep 17 00:00:00 2001 From: TheidenHD <31984391+TheidenHD@users.noreply.github.com> Date: Thu, 18 Nov 2021 20:52:48 +0100 Subject: [PATCH] Fix #94 --- src/main/java/com/kamefrede/rpsideas/items/ItemCADMagazine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/kamefrede/rpsideas/items/ItemCADMagazine.java b/src/main/java/com/kamefrede/rpsideas/items/ItemCADMagazine.java index 38f293a..534c6e0 100644 --- a/src/main/java/com/kamefrede/rpsideas/items/ItemCADMagazine.java +++ b/src/main/java/com/kamefrede/rpsideas/items/ItemCADMagazine.java @@ -237,7 +237,7 @@ public ActionResult onItemRightClick(World worldIn, EntityPlayer play boolean bandwidthMatch = magBandwidth < 0 || magBandwidth >= bandwidthRequired; - if (cadSockets >= socketsRequired && magSockets >= socketsRequired && bandwidthMatch) { + if ((cadSockets >= socketsRequired || cadSockets == -1) && (magSockets >= socketsRequired || magSockets == -1) && bandwidthMatch) { NonNullList tempInventory = NonNullList.create(); for (int i = 0; i < socketsRequired && isSocketSlotAvailable(mag, i); i++) tempInventory.add(getBulletInSocket(mag, i));