This commit is contained in:
Brianna O'Keefe 2018-09-22 18:10:05 -04:00
parent 6db6a8b84d
commit 3be979e59d
2 changed files with 7 additions and 1 deletions

View File

@ -6,12 +6,14 @@ import com.songoda.epichoppers.api.hopper.Hopper;
import com.songoda.epichoppers.api.hopper.levels.modules.Module;
import com.songoda.epichoppers.utils.Debugger;
import org.apache.commons.lang.StringUtils;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Item;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.metadata.FixedMetadataValue;
import xyz.wildseries.wildstacker.api.WildStackerAPI;
import java.util.Collection;
import java.util.List;
@ -50,6 +52,10 @@ public class ModuleSuction implements Module {
}
if (e.hasMetadata("grabbed"))
continue;
if (Bukkit.getPluginManager().isPluginEnabled("WildStacker")) {
hopItem.setAmount(WildStackerAPI.getItemAmount((Item)e));
}
ItemStack item = ((Item) e).getItemStack();
if (!canMove(hopperBlock.getInventory(), item)) {
continue;

View File

@ -2,7 +2,7 @@ name: EpicHoppers
description: EpicHoppers
main: com.songoda.epichoppers.EpicHoppersPlugin
depend: [Arconix]
softdepend: [Towny, RedProtect, Kingdoms, PlotsSquared, GriefPrevention, USkyBlock, ASkyBlock, WorldGuard, Factions, Vault]
softdepend: [WildStacker, Towny, RedProtect, Kingdoms, PlotsSquared, GriefPrevention, USkyBlock, ASkyBlock, WorldGuard, Factions, Vault]
version: 3
author: Songoda
api-version: 1.13