From 8eec7dae3e3a5adb114747d09f22ee47c6bbfee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Endre=C3=9F?= Date: Wed, 14 Apr 2021 15:39:56 +0200 Subject: [PATCH] Remove unneeded if --- .../syntaxapi/data/container/nbt/NbtAdapterRegistry.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/data/data-nbtcontainer/src/main/java/com/syntaxphoenix/syntaxapi/data/container/nbt/NbtAdapterRegistry.java b/data/data-nbtcontainer/src/main/java/com/syntaxphoenix/syntaxapi/data/container/nbt/NbtAdapterRegistry.java index 3e38f87..aeaf156 100644 --- a/data/data-nbtcontainer/src/main/java/com/syntaxphoenix/syntaxapi/data/container/nbt/NbtAdapterRegistry.java +++ b/data/data-nbtcontainer/src/main/java/com/syntaxphoenix/syntaxapi/data/container/nbt/NbtAdapterRegistry.java @@ -13,11 +13,7 @@ public Object extract(NbtTag base) { if (base.getType() == NbtType.END) { return null; } - Object value = extract(base.getValue().getClass(), base); - if (value instanceof NbtTag) { - return extract((NbtTag) value); - } - return value; + return extract(base.getValue().getClass(), base); } @Override