From 26a043fd0a877588e0cb6e009322412775425025 Mon Sep 17 00:00:00 2001 From: EOT3000 <43685885+EOT3000@users.noreply.github.com> Date: Fri, 13 Sep 2019 22:53:16 -0400 Subject: [PATCH] null is probably solid! Like dirt! --- .../connector/network/translators/item/ItemTranslator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/network/translators/item/ItemTranslator.java b/connector/src/main/java/org/geysermc/connector/network/translators/item/ItemTranslator.java index 5d223ba0..01d2fcf2 100644 --- a/connector/src/main/java/org/geysermc/connector/network/translators/item/ItemTranslator.java +++ b/connector/src/main/java/org/geysermc/connector/network/translators/item/ItemTranslator.java @@ -63,9 +63,9 @@ public class ItemTranslator { } public ItemData translateToBedrock(ItemStack stack) { - // Most likely air if null + // Most likely dirt if null if (stack == null) { - return ItemData.AIR; + return ItemData.of(3, (short)0, 0); } BedrockItem bedrockItem = getBedrockItem(stack);