mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-01-25 09:01:35 +01:00
Placed hoppers will now preserve orientation.
This commit is contained in:
parent
2900dc2c3d
commit
8bebdc7ed6
@ -54,9 +54,6 @@ public class BlockListeners implements Listener {
|
||||
|
||||
ItemStack item = e.getItemInHand().clone();
|
||||
|
||||
e.getBlock().setType(Material.AIR);
|
||||
e.getBlock().getLocation().getBlock().setType(Material.HOPPER);
|
||||
|
||||
instance.getHopperManager().addHopper(e.getBlock().getLocation(), new EHopper(e.getBlock(), instance.getLevelFromItem(item), e.getPlayer().getUniqueId(), null, new EFilter(), false));
|
||||
|
||||
} catch (Exception ee) {
|
||||
|
Loading…
Reference in New Issue
Block a user