From 3be979e59d41a8e627a98d0c77941ac60f164796 Mon Sep 17 00:00:00 2001 From: Brianna O'Keefe Date: Sat, 22 Sep 2018 18:10:05 -0400 Subject: [PATCH] Patch --- .../epichoppers/hopper/levels/modules/ModuleSuction.java | 6 ++++++ EpicHoppers-Plugin/src/main/resources/plugin.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleSuction.java b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleSuction.java index 0040c13..e5bac14 100644 --- a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleSuction.java +++ b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleSuction.java @@ -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; diff --git a/EpicHoppers-Plugin/src/main/resources/plugin.yml b/EpicHoppers-Plugin/src/main/resources/plugin.yml index 6ec9767..95ae211 100644 --- a/EpicHoppers-Plugin/src/main/resources/plugin.yml +++ b/EpicHoppers-Plugin/src/main/resources/plugin.yml @@ -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