Check hash here
This commit is contained in:
@@ -80,7 +80,7 @@ public final class RSUtils {
|
||||
buf.writeInt(Item.getIdFromItem(stack.getItem()));
|
||||
buf.writeInt(stack.getCount());
|
||||
buf.writeInt(stack.getItemDamage());
|
||||
ByteBufUtils.writeTag(buf, stack.getTagCompound());
|
||||
ByteBufUtils.writeTag(buf, stack.getItem().getNBTShareTag(stack));
|
||||
buf.writeInt(API.instance().getItemStackHashCode(stack));
|
||||
buf.writeBoolean(network.hasPattern(stack));
|
||||
buf.writeBoolean(displayCraftText);
|
||||
|
||||
@@ -3,7 +3,6 @@ package com.raoulvdberge.refinedstorage.network;
|
||||
import com.raoulvdberge.refinedstorage.RSUtils;
|
||||
import com.raoulvdberge.refinedstorage.api.autocrafting.ICraftingPattern;
|
||||
import com.raoulvdberge.refinedstorage.api.network.INetworkMaster;
|
||||
import com.raoulvdberge.refinedstorage.apiimpl.API;
|
||||
import com.raoulvdberge.refinedstorage.gui.grid.GuiGrid;
|
||||
import com.raoulvdberge.refinedstorage.gui.grid.stack.ClientStackItem;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
@@ -68,7 +67,7 @@ public class MessageGridItemUpdate implements IMessage, IMessageHandler<MessageG
|
||||
if (item.doesDisplayCraftText()) {
|
||||
// This is an output from a pattern being sent. Only add it if it hasn't been added before.
|
||||
for (ClientStackItem otherItem : GuiGrid.ITEMS.get(item.getStack().getItem())) {
|
||||
if (API.instance().getComparer().isEqualNoQuantity(item.getStack(), otherItem.getStack())) {
|
||||
if (item.getHash() == otherItem.getHash()) {
|
||||
canAdd = false;
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user