From b4ae7619320972c85e599bc9f8083d999c4c92a5 Mon Sep 17 00:00:00 2001 From: Brianna Date: Sun, 29 Sep 2019 09:36:35 -0400 Subject: [PATCH] Restrict derp to 1.9.4+ --- .../java/com/songoda/ultimatestacker/utils/EntityUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/songoda/ultimatestacker/utils/EntityUtils.java b/src/main/java/com/songoda/ultimatestacker/utils/EntityUtils.java index 335e577..b82de0d 100644 --- a/src/main/java/com/songoda/ultimatestacker/utils/EntityUtils.java +++ b/src/main/java/com/songoda/ultimatestacker/utils/EntityUtils.java @@ -125,7 +125,8 @@ public class EntityUtils { break; } case SNOWMAN_DERPED: { - if (!(toClone instanceof Snowman)) break; + if (!ServerVersion.isServerVersionAtLeast(ServerVersion.V1_9) + || !(toClone instanceof Snowman)) break; ((Snowman) newEntity).setDerp(((Snowman) toClone).isDerp()); break; } @@ -315,7 +316,8 @@ public class EntityUtils { break; } case SNOWMAN_DERPED: { - if (!(initalEntity instanceof Snowman)) break; + if (!ServerVersion.isServerVersionAtLeast(ServerVersion.V1_9) + || !(initalEntity instanceof Snowman)) break; Snowman snowman = ((Snowman) initalEntity); if (snowman.isDerp()) {