From f274b9045e255ce8f1de97b6fd08514702133440 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 7 Aug 2021 23:17:39 +0100 Subject: [PATCH] Being absolutely sure --- .../java/com/willfp/eco/proxy/v1_16_R3/FastItemStackUtils.java | 2 +- .../java/com/willfp/eco/proxy/v1_17_R1/FastItemStackUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eco-core/core-nms/v1_16_R3/src/main/java/com/willfp/eco/proxy/v1_16_R3/FastItemStackUtils.java b/eco-core/core-nms/v1_16_R3/src/main/java/com/willfp/eco/proxy/v1_16_R3/FastItemStackUtils.java index 438f7489f..436d5c351 100644 --- a/eco-core/core-nms/v1_16_R3/src/main/java/com/willfp/eco/proxy/v1_16_R3/FastItemStackUtils.java +++ b/eco-core/core-nms/v1_16_R3/src/main/java/com/willfp/eco/proxy/v1_16_R3/FastItemStackUtils.java @@ -19,7 +19,7 @@ public static net.minecraft.server.v1_16_R3.ItemStack getNMSStack(@NotNull final return nms == null ? CraftItemStack.asNMSCopy(itemStack) : nms; } catch (ReflectiveOperationException e) { e.printStackTrace(); - return null; + return net.minecraft.server.v1_16_R3.ItemStack.b; } } } diff --git a/eco-core/core-nms/v1_17_R1/src/main/java/com/willfp/eco/proxy/v1_17_R1/FastItemStackUtils.java b/eco-core/core-nms/v1_17_R1/src/main/java/com/willfp/eco/proxy/v1_17_R1/FastItemStackUtils.java index 73ff85f47..c8fda44d7 100644 --- a/eco-core/core-nms/v1_17_R1/src/main/java/com/willfp/eco/proxy/v1_17_R1/FastItemStackUtils.java +++ b/eco-core/core-nms/v1_17_R1/src/main/java/com/willfp/eco/proxy/v1_17_R1/FastItemStackUtils.java @@ -21,7 +21,7 @@ public static net.minecraft.world.item.ItemStack getNMSStack(@NotNull final Item return nms == null ? CraftItemStack.asNMSCopy(itemStack) : nms; } catch (ReflectiveOperationException e) { e.printStackTrace(); - return null; + return net.minecraft.world.item.ItemStack.EMPTY; } } }