From a3d75ea69e6baf74fad57a2cc08910f093ebed7c Mon Sep 17 00:00:00 2001 From: Henry Loenwind Date: Sun, 14 May 2017 06:24:47 +0200 Subject: [PATCH] Prevent crashes when the used item cannot be found on the player * re https://github.com/SleepyTrousers/EnderIO/issues/4218 --- src/main/java/biomesoplenty/common/util/entity/PlayerUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/biomesoplenty/common/util/entity/PlayerUtil.java b/src/main/java/biomesoplenty/common/util/entity/PlayerUtil.java index d2a1e33a3..394bac892 100644 --- a/src/main/java/biomesoplenty/common/util/entity/PlayerUtil.java +++ b/src/main/java/biomesoplenty/common/util/entity/PlayerUtil.java @@ -30,6 +30,6 @@ public class PlayerUtil return hand; } - return null; + return EnumHand.MAIN_HAND; } }