From 4b940bcd205f5f1b868f80f253a9457a0c69a201 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 14 Jul 2021 00:55:31 +1200 Subject: [PATCH] Fix ender_crystal disguise popping in the ground --- .../me/libraryaddict/disguise/utilities/DisguiseUtilities.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index 72b0e71f..529ae679 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -3103,6 +3103,8 @@ public class DisguiseUtilities { } switch (disguise.getType()) { + case ENDER_CRYSTAL: + return yMod + 1; case BAT: if (entity instanceof LivingEntity) { return yMod + ((LivingEntity) entity).getEyeHeight(); @@ -3146,6 +3148,7 @@ public class DisguiseUtilities { default: break; } + return yMod; } }