Skip to content

Commit

Permalink
Fixed Wood Cutter attempting to plant the repair item
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon3055 committed Jul 10, 2024
1 parent fbb19ac commit 1f3f1c3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import vswe.stevescarts.api.modules.template.ModuleTool;
import vswe.stevescarts.client.guis.GuiMinecart;
import vswe.stevescarts.api.slots.SlotStevesCarts;
import vswe.stevescarts.containers.slots.SlotRepair;
import vswe.stevescarts.containers.slots.SlotSapling;
import vswe.stevescarts.entities.EntityMinecartModular;
import vswe.stevescarts.helpers.BlockPosHelpers;
Expand Down Expand Up @@ -200,7 +201,7 @@ else if ((pos.getX() == cx && pos.getX() / size % 2 == 0) || (pos.getZ() == cz &
for (int i = 0; i < getInventorySize(); ++i)
{
final SlotStevesCarts slot = getSlots().get(i);
if (slot.containsValidItem())
if (slot.containsValidItem() && !(slot instanceof SlotRepair))
{
sapling = getStack(i);
break;
Expand Down

0 comments on commit 1f3f1c3

Please sign in to comment.