mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-09 09:57:40 +01:00
Merge pull request #2315 from BentoBoxWorld/2313_Crafting_protection
This commit is contained in:
commit
dcc3992762
@ -28,7 +28,6 @@ import org.bukkit.inventory.BeaconInventory;
|
|||||||
import org.bukkit.inventory.BrewerInventory;
|
import org.bukkit.inventory.BrewerInventory;
|
||||||
import org.bukkit.inventory.CartographyInventory;
|
import org.bukkit.inventory.CartographyInventory;
|
||||||
import org.bukkit.inventory.ChiseledBookshelfInventory;
|
import org.bukkit.inventory.ChiseledBookshelfInventory;
|
||||||
import org.bukkit.inventory.CraftingInventory;
|
|
||||||
import org.bukkit.inventory.DoubleChestInventory;
|
import org.bukkit.inventory.DoubleChestInventory;
|
||||||
import org.bukkit.inventory.EnchantingInventory;
|
import org.bukkit.inventory.EnchantingInventory;
|
||||||
import org.bukkit.inventory.FurnaceInventory;
|
import org.bukkit.inventory.FurnaceInventory;
|
||||||
@ -185,9 +184,6 @@ public class InventoryListener extends FlagListener
|
|||||||
} else if (e.getInventory() instanceof ChiseledBookshelfInventory) {
|
} else if (e.getInventory() instanceof ChiseledBookshelfInventory) {
|
||||||
this.checkIsland(e, player, e.getInventory().getLocation(), Flags.BOOKSHELF);
|
this.checkIsland(e, player, e.getInventory().getLocation(), Flags.BOOKSHELF);
|
||||||
return true;
|
return true;
|
||||||
} else if (e.getInventory() instanceof CraftingInventory) {
|
|
||||||
this.checkIsland(e, player, e.getInventory().getLocation(), Flags.CRAFTING);
|
|
||||||
return true;
|
|
||||||
} else if (e.getInventory() instanceof DoubleChestInventory) {
|
} else if (e.getInventory() instanceof DoubleChestInventory) {
|
||||||
checkInvHolder(e.getInventory().getLocation(), e, player);
|
checkInvHolder(e.getInventory().getLocation(), e, player);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user