console.info("[SOCIETY] compactingDrawerExploit.js loaded");

BlockEvents.rightClicked(
  [
    "functionalstorage:compacting_drawer",
    "functionalstorage:simple_compacting_drawer",
    "functionalstorage:compacting_framed_drawer",
    "functionalstorage:framed_simple_compacting_drawer",
  ],
  (e) => {
    const { item, player } = e;
    if (item.nbt && item.nbt.quality_food) {
      player.tell(Text.red("Quality items can't be inserted into Comapcting Drawers"));
      e.cancel();
    }
  }
);
