Restrict derp to 1.9.4+

This commit is contained in:
Brianna 2019-09-29 09:36:35 -04:00
parent 58cf622fc2
commit b4ae761932

View File

@ -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()) {