Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TheidenHD committed Nov 18, 2021
1 parent 1a27245 commit e8bb9de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public ActionResult<ItemStack> 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<ItemStack> tempInventory = NonNullList.create();
for (int i = 0; i < socketsRequired && isSocketSlotAvailable(mag, i); i++)
tempInventory.add(getBulletInSocket(mag, i));
Expand Down

0 comments on commit e8bb9de

Please sign in to comment.