public override void KillMultiTile(int i, int j, int frameX, int frameY) { TestChestTE drawer = Utility.GetTileEntity <TestChestTE>(i, j); PanelUI.Instance.CloseUI(drawer); Item.NewItem(i * 16, j * 16, 32, 32, ModContent.ItemType <TestChest>()); drawer.Kill(i, j); }
public override bool NewRightClick(int i, int j) { TestChestTE drawer = Utility.GetTileEntity <TestChestTE>(i, j); if (drawer == null) { return(false); } PanelUI.Instance.HandleUI(drawer); return(true); }