Fix for ocelots in 1.14

This commit is contained in:
Brianna 2019-07-29 21:44:09 -04:00
parent fc2aba567e
commit b606d33c44
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@ stages:
variables:
name: "UltimateStacker"
path: "/builds/$CI_PROJECT_PATH"
version: "1.8.3"
version: "1.8.4"
build:
stage: build

View File

@ -217,7 +217,8 @@ public class Methods {
break;
}
case OCELOT_TYPE: {
if (!(toClone instanceof Ocelot)) break;
if (!(toClone instanceof Ocelot)
|| UltimateStacker.getInstance().isServerVersionAtLeast(ServerVersion.V1_14)) break;
((Ocelot) newEntity).setCatType(((Ocelot) toClone).getCatType());
}
case CAT_TYPE: {
@ -719,6 +720,7 @@ public class Methods {
public static class Tuple<key, value> {
public final key x;
public final value y;
public Tuple(key x, value y) {
this.x = x;
this.y = y;