Don't compare NBT names - they are no longer persistant.

This commit is contained in:
Kristian S. Stangeland 2013-12-04 15:55:17 +01:00
parent c137640fee
commit 65e665aa59
2 changed files with 2 additions and 3 deletions

View File

@ -141,7 +141,7 @@ public class PacketType implements Serializable {
public static final PacketType SET_SLOT = new PacketType(PROTOCOL, SENDER, 0x2F, 103);
public static final PacketType WINDOW_ITEMS = new PacketType(PROTOCOL, SENDER, 0x30, 104);
public static final PacketType CRAFT_PROGRESS_BAR = new PacketType(PROTOCOL, SENDER, 0x31, 105);
public static final PacketType TRANSACTION = new PacketType(PROTOCOL, SENDER, 0x32, 106);
public static final PacketType TRANSACTION = new PacketType(PROTOCOL, SENDER, 0x32, 106);
public static final PacketType UPDATE_SIGN = new PacketType(PROTOCOL, SENDER, 0x33, 130);
public static final PacketType ITEM_DATA = new PacketType(PROTOCOL, SENDER, 0x34, 131);
public static final PacketType TILE_ENTITY_DATA = new PacketType(PROTOCOL, SENDER, 0x35, 132);

View File

@ -227,8 +227,7 @@ class WrappedElement<TType> implements NbtWrapper<TType> {
// Make sure we're dealing with the same type
if (other.getType().equals(getType())) {
return Objects.equal(getName(), other.getName()) &&
Objects.equal(getValue(), other.getValue());
return Objects.equal(getValue(), other.getValue());
}
}
return false;