fix ConstructorNetworkNode not extracting on placement (#2584)

This commit is contained in:
Darkere
2020-06-21 13:57:21 +02:00
committed by GitHub
parent 84d1802431
commit a8920eea15

View File

@@ -120,7 +120,7 @@ public class ConstructorNetworkNode extends NetworkNode implements IComparable,
ActionResultType result = ForgeHooks.onPlaceItemIntoWorld(ctx); ActionResultType result = ForgeHooks.onPlaceItemIntoWorld(ctx);
if (result == ActionResultType.SUCCESS) { if (result == ActionResultType.SUCCESS) {
network.extractItem(took, 1, Action.PERFORM); network.extractItem(stack, 1, Action.PERFORM);
} }
} else if (upgrades.hasUpgrade(UpgradeItem.Type.CRAFTING)) { } else if (upgrades.hasUpgrade(UpgradeItem.Type.CRAFTING)) {
ItemStack craft = itemFilters.getStackInSlot(0); ItemStack craft = itemFilters.getStackInSlot(0);