mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-24 01:17:37 +01:00
Merge branch 'development'
This commit is contained in:
commit
037ff4400f
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "UltimateStacker"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "1.10.12"
|
||||
version: "1.10.13"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -149,7 +149,8 @@ public class StackingTask extends BukkitRunnable {
|
||||
if (this.processed.contains(entity.getUniqueId())) continue;
|
||||
|
||||
// Check our WorldGuard flag.
|
||||
if (WorldGuardHook.isEnabled() && !WorldGuardHook.getBooleanFlag(entity.getLocation(), "mob-stacking"))
|
||||
Boolean flag = WorldGuardHook.isEnabled() ? WorldGuardHook.getBooleanFlag(livingEntity.getLocation(), "mob-stacking") : null;
|
||||
if (flag != null && !flag)
|
||||
continue;
|
||||
|
||||
// Get this entities friendStack.
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user