mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-09-28 22:47:49 +02:00
Fix for ocelots in 1.14
This commit is contained in:
parent
fc2aba567e
commit
b606d33c44
@ -4,7 +4,7 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
name: "UltimateStacker"
|
name: "UltimateStacker"
|
||||||
path: "/builds/$CI_PROJECT_PATH"
|
path: "/builds/$CI_PROJECT_PATH"
|
||||||
version: "1.8.3"
|
version: "1.8.4"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -217,7 +217,8 @@ public class Methods {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case OCELOT_TYPE: {
|
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());
|
((Ocelot) newEntity).setCatType(((Ocelot) toClone).getCatType());
|
||||||
}
|
}
|
||||||
case CAT_TYPE: {
|
case CAT_TYPE: {
|
||||||
@ -719,6 +720,7 @@ public class Methods {
|
|||||||
public static class Tuple<key, value> {
|
public static class Tuple<key, value> {
|
||||||
public final key x;
|
public final key x;
|
||||||
public final value y;
|
public final value y;
|
||||||
|
|
||||||
public Tuple(key x, value y) {
|
public Tuple(key x, value y) {
|
||||||
this.x = x;
|
this.x = x;
|
||||||
this.y = y;
|
this.y = y;
|
||||||
|
Loading…
Reference in New Issue
Block a user