Skip to content

Commit

Permalink
Fixed compact issue with Wumpleutil/Food Funk with right clicking Veh…
Browse files Browse the repository at this point in the history
…icleChanger due to slots issues (Issue #708)
  • Loading branch information
MJRLegends committed Sep 20, 2022
1 parent d3edcdf commit 8386ac3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import micdoodle8.mods.galacticraft.api.tile.ILandingPadAttachable;
import micdoodle8.mods.galacticraft.api.vector.BlockVec3;
import micdoodle8.mods.galacticraft.core.GCItems;
import micdoodle8.mods.galacticraft.core.energy.item.ItemElectricBase;
import micdoodle8.mods.galacticraft.core.energy.tile.TileBaseElectricBlockWithInventory;
import micdoodle8.mods.galacticraft.core.tile.IMachineSides;
Expand Down Expand Up @@ -78,7 +77,7 @@ public int getInventoryStackLimit() {

@Override
public int[] getSlotsForFace(EnumFacing side) {
return new int[] { 0, 1 };
return new int[] { 0 };
}

@Override
Expand All @@ -93,7 +92,7 @@ public boolean canExtractItem(int index, ItemStack itemStackIn, EnumFacing direc

@Override
public boolean isItemValidForSlot(int slotID, ItemStack itemStack) {
return (slotID == 1 && itemStack != null && itemStack.getItem() == GCItems.fuelCanister) || (slotID == 0 ? ItemElectricBase.isElectricItem(itemStack.getItem()) : false);
return slotID == 0 ? ItemElectricBase.isElectricItem(itemStack.getItem()) : false;
}

@Override
Expand Down

0 comments on commit 8386ac3

Please sign in to comment.