From 7650eedb7ad7d72c538e27dd5c65712ad7f8501a Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Thu, 10 Sep 2020 10:57:55 -0400 Subject: [PATCH] Fix compile error due to yet another breaking change in Adventure --- .../protocol/util/VelocityLegacyHoverEventSerializer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/util/VelocityLegacyHoverEventSerializer.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/util/VelocityLegacyHoverEventSerializer.java index f819f9b16..02af541a6 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/util/VelocityLegacyHoverEventSerializer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/util/VelocityLegacyHoverEventSerializer.java @@ -49,7 +49,7 @@ public class VelocityLegacyHoverEventSerializer implements LegacyHoverEventSeria } byte count = item.getByte("Count", (byte) 1); - return new ShowItem(key, count, BinaryTagHolder.of(snbt)); + return ShowItem.of(key, count, BinaryTagHolder.of(snbt)); } @Override @@ -65,7 +65,7 @@ public class VelocityLegacyHoverEventSerializer implements LegacyHoverEventSeria name = TextComponent.of(item.getString("name")); } - return new ShowEntity(Key.of(item.getString("type")), + return ShowEntity.of(Key.of(item.getString("type")), UUID.fromString(item.getString("id")), name); }