Fix for unsupported method.

This commit is contained in:
Brianna 2019-06-11 20:18:58 -04:00
parent b4f040e685
commit 9516057674
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -49,7 +49,8 @@ public class Methods {
((Tameable) newEntity).setOwner(((Tameable) toClone).getOwner()); ((Tameable) newEntity).setOwner(((Tameable) toClone).getOwner());
} }
case SKELETON_TYPE: { case SKELETON_TYPE: {
if (!(toClone instanceof Skeleton)) break; if (!(toClone instanceof Skeleton)
|| UltimateStacker.getInstance().isServerVersionAtLeast(ServerVersion.V1_13)) break;
((Skeleton) newEntity).setSkeletonType(((Skeleton) toClone).getSkeletonType()); ((Skeleton) newEntity).setSkeletonType(((Skeleton) toClone).getSkeletonType());
break; break;
} }