diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/EntityPacketRewriter1_20_5.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/EntityPacketRewriter1_20_5.java index 638247b3a..548530404 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/EntityPacketRewriter1_20_5.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/EntityPacketRewriter1_20_5.java @@ -104,7 +104,7 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter(StringTag.class)); diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/StructuredDataConverter.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/StructuredDataConverter.java index 7bb251992..a5b2bc67e 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/StructuredDataConverter.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/StructuredDataConverter.java @@ -435,9 +435,19 @@ final class StructuredDataConverter { blockStateTag.putString(entry.getKey(), entry.getValue()); } })); - register(StructuredDataKey.INTANGIBLE_PROJECTILE, (data, tag) -> { - // Nothing + register(StructuredDataKey.HIDE_TOOLTIP, (data, tag) -> { + // Hide everything we can hide + putHideFlag(tag, 0xFF); }); + + // Nothing to do for these + noop(StructuredDataKey.INTANGIBLE_PROJECTILE); + noop(StructuredDataKey.MAX_STACK_SIZE); + noop(StructuredDataKey.MAX_DAMAGE); + noop(StructuredDataKey.RARITY); + noop(StructuredDataKey.FOOD); + noop(StructuredDataKey.FIRE_RESISTANT); + noop(StructuredDataKey.TOOL); } private static String toItemName(final int id) { @@ -570,6 +580,11 @@ final class StructuredDataConverter { REWRITERS.put(key, converter); } + private static void noop(final StructuredDataKey key) { + register(key, (data, tag) -> { + }); + } + @FunctionalInterface interface DataConverter {