From 34b1b503fa8a9bd50e40ade0d2655f8aa7cb1b0e Mon Sep 17 00:00:00 2001 From: Brianna Date: Thu, 8 Aug 2019 09:51:51 -0400 Subject: [PATCH] Fix for shulker stacking. --- .../com/songoda/ultimatestacker/tasks/StackingTask.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/songoda/ultimatestacker/tasks/StackingTask.java b/src/main/java/com/songoda/ultimatestacker/tasks/StackingTask.java index 4119f7c..a69dc5b 100644 --- a/src/main/java/com/songoda/ultimatestacker/tasks/StackingTask.java +++ b/src/main/java/com/songoda/ultimatestacker/tasks/StackingTask.java @@ -9,10 +9,7 @@ import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.configuration.ConfigurationSection; -import org.bukkit.entity.ArmorStand; -import org.bukkit.entity.Entity; -import org.bukkit.entity.HumanEntity; -import org.bukkit.entity.LivingEntity; +import org.bukkit.entity.*; import org.bukkit.scheduler.BukkitRunnable; import java.util.*; @@ -107,6 +104,7 @@ public class StackingTask extends BukkitRunnable { // If only stack on surface is enabled make sure the entity is on a surface then entity is stackable. return !Setting.ONLY_STACK_ON_SURFACE.getBoolean() || Methods.canFly(livingEntity) + || entity.getType() == EntityType.SHULKER || (livingEntity.isOnGround() || location.getBlock().isLiquid()); }