Skip to content

Commit

Permalink
Update DirtyChestMenu.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Nov 22, 2024
1 parent 89ef41c commit 9dc2d46
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import lombok.Getter;

import me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.ChestMenu;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.entity.HumanEntity;
import org.bukkit.entity.Player;
Expand Down Expand Up @@ -129,10 +128,6 @@ public boolean fits(ItemStack item, int... slots) {
*/
@Nullable
public ItemStack pushItem(ItemStack item, int... slots) {
if (item == null || item.getType() == Material.AIR) {
throw new IllegalArgumentException("Cannot push null or AIR");
}

if (locked()) {
throw new IllegalStateException("Cannot push item when menu is locked");
}
Expand Down

0 comments on commit 9dc2d46

Please sign in to comment.