Program: 79947
Project: 79947
Buggy source:
public CargoInputNode(Category category,ItemStack item,String name,RecipeType recipeType,ItemStack[] recipe,ItemStack recipeOutput){
  super(category,item,name,recipeType,recipe,recipeOutput);
  new BlockMenuPreset(name,"String_Node_Str"){
    @Override public void init(){
      constructMenu(this);
    }
    @SuppressWarnings("String_Node_Str") @Override public void newInstance(    final BlockMenu menu,    final Block b){
      try {
        if (!BlockStorage.hasBlockInfo(b) || BlockStorage.getBlockInfo(b,"String_Node_Str") == null || BlockStorage.getBlockInfo(b,"String_Node_Str").equals("String_Node_Str")) {
          menu.replaceExistingItem(15,new CustomItem(new MaterialData(Material.WOOL),"String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(15,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
 else {
          menu.replaceExistingItem(15,new CustomItem(new MaterialData(Material.WOOL,(byte)15),"String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(15,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
        if (!BlockStorage.hasBlockInfo(b) || BlockStorage.getBlockInfo(b,"String_Node_Str") == null || BlockStorage.getBlockInfo(b,"String_Node_Str").equals("String_Node_Str")) {
          menu.replaceExistingItem(16,new CustomItem(new MaterialData(Material.STONE_SWORD,(byte)20),"String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(16,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
 else {
          menu.replaceExistingItem(16,new CustomItem(new MaterialData(Material.GOLD_SWORD,(byte)20),"String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(16,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
        if (!BlockStorage.hasBlockInfo(b) || BlockStorage.getBlockInfo(b,"String_Node_Str") == null || BlockStorage.getBlockInfo(b,"String_Node_Str").equals("String_Node_Str")) {
          menu.replaceExistingItem(24,new CustomItem(CustomSkull.getItem("String_Node_Str"),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(24,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
 else {
          menu.replaceExistingItem(24,new CustomItem(CustomSkull.getItem("String_Node_Str"),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(24,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
        if (!BlockStorage.hasBlockInfo(b) || BlockStorage.getBlockInfo(b,"String_Node_Str") == null || BlockStorage.getBlockInfo(b,"String_Node_Str").equals("String_Node_Str")) {
          menu.replaceExistingItem(25,new CustomItem(new MaterialData(Material.EMPTY_MAP),"String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(25,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
 else {
          menu.replaceExistingItem(25,new CustomItem(new MaterialData(Material.EMPTY_MAP),"String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(25,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
        menu.replaceExistingItem(41,new CustomItem(CustomSkull.getItem("String_Node_Str"),"String_Node_Str","String_Node_Str","String_Node_Str"));
        menu.addMenuClickHandler(41,new MenuClickHandler(){
          @Override public boolean onClick(          Player p,          int arg1,          ItemStack arg2,          ClickAction arg3){
            int channel=Integer.parseInt(BlockStorage.getBlockInfo(b,"String_Node_Str")) - 1;
            if (channel < 0) {
              if (CargoNet.EXTRA_CHANNELS)               channel=16;
 else               channel=15;
            }
            BlockStorage.addBlockInfo(b,"String_Node_Str",String.valueOf(channel));
            newInstance(menu,b);
            return false;
          }
        }
);
        int channel=((!BlockStorage.hasBlockInfo(b) || BlockStorage.getBlockInfo(b,"String_Node_Str") == null) ? 0 : (Integer.parseInt(BlockStorage.getBlockInfo(b,"String_Node_Str"))));
        if (channel == 16) {
          menu.replaceExistingItem(42,new CustomItem(SlimefunItems.CHEST_TERMINAL,"String_Node_Str" + (channel + 1)));
          menu.addMenuClickHandler(42,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              return false;
            }
          }
);
        }
 else {
          menu.replaceExistingItem(42,new CustomItem(new MaterialData(Material.WOOL,(byte)channel),"String_Node_Str" + (channel + 1)));
          menu.addMenuClickHandler(42,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              return false;
            }
          }
);
        }
        menu.replaceExistingItem(43,new CustomItem(CustomSkull.getItem("String_Node_Str"),"String_Node_Str","String_Node_Str","String_Node_Str"));
        menu.addMenuClickHandler(43,new MenuClickHandler(){
          @Override public boolean onClick(          Player p,          int arg1,          ItemStack arg2,          ClickAction arg3){
            int channel=Integer.parseInt(BlockStorage.getBlockInfo(b,"String_Node_Str")) + 1;
            if (CargoNet.EXTRA_CHANNELS) {
              if (channel > 16)               channel=0;
            }
 else {
              if (channel > 15)               channel=0;
            }
            BlockStorage.addBlockInfo(b,"String_Node_Str",String.valueOf(channel));
            newInstance(menu,b);
            return false;
          }
        }
);
      }
 catch (      Exception e) {
        e.printStackTrace();
      }
    }
    @Override public boolean canOpen(    Block b,    Player p){
      boolean open=CSCoreLib.getLib().getProtectionManager().canAccessChest(p.getUniqueId(),b) || p.hasPermission("String_Node_Str");
      if (!open) {
        Messages.local.sendTranslation(p,"String_Node_Str",true);
      }
      return open;
    }
    @Override public int[] getSlotsAccessedByItemTransport(    ItemTransportFlow flow){
      return new int[0];
    }
  }
;
  registerBlockHandler(name,new SlimefunBlockHandler(){
    @Override public void onPlace(    Player p,    Block b,    SlimefunItem item){
      BlockStorage.addBlockInfo(b,"String_Node_Str",p.getUniqueId().toString());
      BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
      BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
      BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
      BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
      BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
      BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
    }
    @Override public boolean onBreak(    Player p,    Block b,    SlimefunItem item,    UnregisterReason reason){
      for (      int slot : getInputSlots()) {
        if (BlockStorage.getInventory(b).getItemInSlot(slot) != null)         b.getWorld().dropItemNaturally(b.getLocation(),BlockStorage.getInventory(b).getItemInSlot(slot));
      }
      return true;
    }
  }
);
}

Fixed version (ground truth):
public CargoInputNode(Category category,ItemStack item,String name,RecipeType recipeType,ItemStack[] recipe,ItemStack recipeOutput){
  super(category,item,name,recipeType,recipe,recipeOutput);
  new BlockMenuPreset(name,"String_Node_Str"){
    @Override public void init(){
      constructMenu(this);
    }
    @SuppressWarnings("String_Node_Str") @Override public void newInstance(    final BlockMenu menu,    final Block b){
      try {
        if (!BlockStorage.hasBlockInfo(b) || BlockStorage.getBlockInfo(b,"String_Node_Str") == null || BlockStorage.getBlockInfo(b,"String_Node_Str").equals("String_Node_Str")) {
          menu.replaceExistingItem(15,new CustomItem(new MaterialData(Material.WOOL),"String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(15,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
 else {
          menu.replaceExistingItem(15,new CustomItem(new MaterialData(Material.WOOL,(byte)15),"String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(15,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
        if (!BlockStorage.hasBlockInfo(b) || BlockStorage.getBlockInfo(b,"String_Node_Str") == null || BlockStorage.getBlockInfo(b,"String_Node_Str").equals("String_Node_Str")) {
          menu.replaceExistingItem(16,new CustomItem(new MaterialData(Material.STONE_SWORD,(byte)20),"String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(16,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
 else {
          menu.replaceExistingItem(16,new CustomItem(new MaterialData(Material.GOLD_SWORD,(byte)20),"String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(16,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
        if (!BlockStorage.hasBlockInfo(b) || BlockStorage.getBlockInfo(b,"String_Node_Str") == null || BlockStorage.getBlockInfo(b,"String_Node_Str").equals("String_Node_Str")) {
          menu.replaceExistingItem(24,new CustomItem(CustomSkull.getItem("String_Node_Str"),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(24,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
 else {
          menu.replaceExistingItem(24,new CustomItem(CustomSkull.getItem("String_Node_Str"),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(24,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
        if (!BlockStorage.hasBlockInfo(b) || BlockStorage.getBlockInfo(b,"String_Node_Str") == null || BlockStorage.getBlockInfo(b,"String_Node_Str").equals("String_Node_Str")) {
          menu.replaceExistingItem(25,new CustomItem(new MaterialData(Material.EMPTY_MAP),"String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(25,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
 else {
          menu.replaceExistingItem(25,new CustomItem(new MaterialData(Material.EMPTY_MAP),"String_Node_Str","String_Node_Str","String_Node_Str"));
          menu.addMenuClickHandler(25,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
              newInstance(menu,b);
              return false;
            }
          }
);
        }
        menu.replaceExistingItem(41,new CustomItem(CustomSkull.getItem("String_Node_Str"),"String_Node_Str","String_Node_Str","String_Node_Str"));
        menu.addMenuClickHandler(41,new MenuClickHandler(){
          @Override public boolean onClick(          Player p,          int arg1,          ItemStack arg2,          ClickAction arg3){
            int channel=Integer.parseInt(BlockStorage.getBlockInfo(b,"String_Node_Str")) - 1;
            if (channel < 0) {
              if (CargoNet.EXTRA_CHANNELS)               channel=16;
 else               channel=15;
            }
            BlockStorage.addBlockInfo(b,"String_Node_Str",String.valueOf(channel));
            newInstance(menu,b);
            return false;
          }
        }
);
        int channel=((!BlockStorage.hasBlockInfo(b) || BlockStorage.getBlockInfo(b,"String_Node_Str") == null) ? 0 : (Integer.parseInt(BlockStorage.getBlockInfo(b,"String_Node_Str"))));
        if (channel == 16) {
          menu.replaceExistingItem(42,new CustomItem(SlimefunItems.CHEST_TERMINAL,"String_Node_Str" + (channel + 1)));
          menu.addMenuClickHandler(42,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              return false;
            }
          }
);
        }
 else {
          menu.replaceExistingItem(42,new CustomItem(new MaterialData(Material.WOOL,(byte)channel),"String_Node_Str" + (channel + 1)));
          menu.addMenuClickHandler(42,new MenuClickHandler(){
            @Override public boolean onClick(            Player p,            int arg1,            ItemStack arg2,            ClickAction arg3){
              return false;
            }
          }
);
        }
        menu.replaceExistingItem(43,new CustomItem(CustomSkull.getItem("String_Node_Str"),"String_Node_Str","String_Node_Str","String_Node_Str"));
        menu.addMenuClickHandler(43,new MenuClickHandler(){
          @Override public boolean onClick(          Player p,          int arg1,          ItemStack arg2,          ClickAction arg3){
            int channel=Integer.parseInt(BlockStorage.getBlockInfo(b,"String_Node_Str")) + 1;
            if (CargoNet.EXTRA_CHANNELS) {
              if (channel > 16)               channel=0;
            }
 else {
              if (channel > 15)               channel=0;
            }
            BlockStorage.addBlockInfo(b,"String_Node_Str",String.valueOf(channel));
            newInstance(menu,b);
            return false;
          }
        }
);
      }
 catch (      Exception e) {
        e.printStackTrace();
      }
    }
    @Override public boolean canOpen(    Block b,    Player p){
      boolean open=CSCoreLib.getLib().getProtectionManager().canAccessChest(p.getUniqueId(),b) || p.hasPermission("String_Node_Str");
      if (!open) {
        Messages.local.sendTranslation(p,"String_Node_Str",true);
      }
      return open;
    }
    @Override public int[] getSlotsAccessedByItemTransport(    ItemTransportFlow flow){
      return new int[0];
    }
  }
;
  registerBlockHandler(name,new SlimefunBlockHandler(){
    @Override public void onPlace(    Player p,    Block b,    SlimefunItem item){
      BlockStorage.addBlockInfo(b,"String_Node_Str",p.getUniqueId().toString());
      BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
      BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
      BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
      BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
      BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
      BlockStorage.addBlockInfo(b,"String_Node_Str","String_Node_Str");
    }
    @Override public boolean onBreak(    Player p,    Block b,    SlimefunItem item,    UnregisterReason reason){
      for (      int slot : getInputSlots()) {
        if (BlockStorage.getInventory(b).getItemInSlot(slot) != null) {
          b.getWorld().dropItemNaturally(b.getLocation(),BlockStorage.getInventory(b).getItemInSlot(slot));
          BlockStorage.getInventory(b).replaceExistingItem(slot,null);
        }
      }
      return true;
    }
  }
);
}