diff --git a/src/main/java/appeng/crafting/MECraftingInventory.java b/src/main/java/appeng/crafting/MECraftingInventory.java index 06c83c038..85c3f18e8 100644 --- a/src/main/java/appeng/crafting/MECraftingInventory.java +++ b/src/main/java/appeng/crafting/MECraftingInventory.java @@ -28,7 +28,9 @@ import appeng.api.storage.IStorageChannel; import appeng.api.storage.channels.IItemStorageChannel; import appeng.api.storage.data.IAEItemStack; import appeng.api.storage.data.IItemList; +import appeng.me.helpers.PlayerSource; import appeng.util.inv.ItemListIgnoreCrafting; +import net.minecraft.util.text.TextComponentString; public class MECraftingInventory implements IMEInventory @@ -307,8 +309,15 @@ public class MECraftingInventory implements IMEInventory if( result == null || result.getStackSize() != extra.getStackSize() ) { + if( src.player().isPresent() ) + { + if( result == null ) + src.player().get().sendStatusMessage( new TextComponentString( "System reported " + extra.getStackSize() + " " + extra.getDefinition().getDisplayName() + " available but could not extract anything" ), false ); + else + src.player().get().sendStatusMessage( new TextComponentString( "System reported " + extra.getStackSize() + " " + extra.getDefinition().getDisplayName() + " available but could only extract " + result.getStackSize() ), false ); + } failed = true; - break; + if( !src.player().isPresent() ) break; } } }