made jei recipe transfer more strict when keeping items on the table
few cleanup
This commit is contained in:
@@ -112,10 +112,6 @@ public class PacketInventoryAction extends AppEngPacket
|
||||
|
||||
public PacketInventoryAction(final InventoryAction action, final IJEITargetSlot slot, final IAEItemStack slotItem ) throws IOException
|
||||
{
|
||||
if( action != InventoryAction.PLACE_JEI_GHOST_ITEM )
|
||||
{
|
||||
throw new IllegalStateException( "invalid packet, client cannot post inv actions with stacks." );
|
||||
}
|
||||
|
||||
this.action = action;
|
||||
if (slot instanceof SlotFake)
|
||||
|
||||
@@ -303,7 +303,7 @@ public class PacketJEIRecipe extends AppEngPacket
|
||||
{
|
||||
for( ItemStack option : this.recipe[slot] )
|
||||
{
|
||||
if( is.isItemEqual( option ) )
|
||||
if( ItemStack.areItemStacksEqual( is, option ) )
|
||||
{
|
||||
return is;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user