diff --git a/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/ItemFilter.java b/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/ItemFilter.java index c0b2261..52c98e2 100644 --- a/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/ItemFilter.java +++ b/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/ItemFilter.java @@ -17,6 +17,7 @@ package at.pcgamingfreaks.Minepacks.Bukkit.Listener; +import at.pcgamingfreaks.Bukkit.MCVersion; import at.pcgamingfreaks.Bukkit.Message.Message; import at.pcgamingfreaks.Bukkit.MinecraftMaterial; import at.pcgamingfreaks.Minepacks.Bukkit.API.Backpack; @@ -43,7 +44,7 @@ public ItemFilter(final Minepacks plugin) { super(plugin); - if(plugin.getConfiguration().isShulkerboxesPreventInBackpackEnabled()) + if(MCVersion.isNewerOrEqualThan(MCVersion.MC_1_11) && plugin.getConfiguration().isShulkerboxesPreventInBackpackEnabled()) { for(Material mat : DisableShulkerboxes.SHULKER_BOX_MATERIALS) { diff --git a/src/at/pcgamingfreaks/Minepacks/Bukkit/Minepacks.java b/src/at/pcgamingfreaks/Minepacks/Bukkit/Minepacks.java index 87fb1f7..4df79d8 100644 --- a/src/at/pcgamingfreaks/Minepacks/Bukkit/Minepacks.java +++ b/src/at/pcgamingfreaks/Minepacks/Bukkit/Minepacks.java @@ -109,7 +109,7 @@ public void onEnable() pluginManager.registerEvents(new EventListener(this), this); if(config.getDropOnDeath()) pluginManager.registerEvents(new DropOnDeath(this), this); if(config.isItemFilterEnabled()) pluginManager.registerEvents(new ItemFilter(this), this); - if(config.isShulkerboxesDisable()) pluginManager.registerEvents(new DisableShulkerboxes(this), this); + if(MCVersion.isNewerOrEqualThan(MCVersion.MC_1_11) && config.isShulkerboxesDisable()) pluginManager.registerEvents(new DisableShulkerboxes(this), this); //endregion if(config.getFullInvCollect()) {